这是我的.htaccess
:
AddDefaultCharset utf-8
RewriteEngine on
RewriteRule ^(.*)signup(.*)$ $1register$2
RewriteCond $1 !^(index\.php|favicon\.ico|robots\.txt|sitemap\.xml|img|js|css|libs|uploads)
RewriteRule ^(.*)$ index.php/$1
是否有人知道为什么http://localhost/site/signup不起作用,而http://localhost/site/register呢?
答案 0 :(得分:1)
AddDefaultCharset utf-8
RewriteEngine on
RewriteRule ^(.*)signup(.*)$ $1register$2 [L]
RewriteCond $1 !^(index\.php|favicon\.ico|robots\.txt|sitemap\.xml|img|js|css|libs|uploads)
RewriteRule ^(.*)$ index.php/$1 [L]