Php htaccess提供的URL短消息器
我当前的网址是Php htaccess提供的URL短消息器,php,.htaccess,Php,.htaccess,我当前的网址是 http://localhost/ssl_project/gp_crm/home.php?route=user_create 但我想把它表现为 http://localhost/ssl_project/gp_crm/user_create 我正在.htaccess RewriteEngine On Options +FollowSymLinks RewriteCond %{THE_REQUEST} ^(GET|HEAD|POST)\ /ssl_project/gp_crm/h
http://localhost/ssl_project/gp_crm/home.php?route=user_create
但我想把它表现为
http://localhost/ssl_project/gp_crm/user_create
我正在.htaccess
RewriteEngine On
Options +FollowSymLinks
RewriteCond %{THE_REQUEST} ^(GET|HEAD|POST)\ /ssl_project/gp_crm/home\.php\?route=([^&]+)
RewriteRule ^ /ssl_project/gp_crm/home/%2/%3?%4 [L,R=301]
RewriteRule ^/?ssl_project/gp_crm/home/([0-9]+)/(.*)$ /ssl_project/gp_crm/home.php?route=$1 [L,QSA]
我用了这个密码后
错误500
请帮助我。下面的规则应该有效,如果它与您的其他规则不冲突,请在您的gp\U crm目录中使用它
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\/])$ home.php?route=$1 [L]
下面的规则应该有效,如果它与您的其他规则不冲突,请在您的gp\U crm目录中使用它
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\/])$ home.php?route=$1 [L]