配置文件系统的 RewriteRule
RewriteRule for profile system
我想重定向 website.com/member/gami
到 website.com/member.php?name=gami
我试过:
RewriteRule ^(.*)/member$ member.php?name= [NC, QSA]
根据您显示的规则,请尝试遵循 htaccess 规则。请确保在测试您的 URL 之前清除您的浏览器缓存。
RewriteEngine ON
##Internal rewrite rules for non-existing uris to php files internally.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}/.php -f
RewriteRule ^([^/]*)/(.*)/?$ .php?name= [QSA,L]
我想重定向 website.com/member/gami
到 website.com/member.php?name=gami
我试过:
RewriteRule ^(.*)/member$ member.php?name= [NC, QSA]
根据您显示的规则,请尝试遵循 htaccess 规则。请确保在测试您的 URL 之前清除您的浏览器缓存。
RewriteEngine ON
##Internal rewrite rules for non-existing uris to php files internally.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}/.php -f
RewriteRule ^([^/]*)/(.*)/?$ .php?name= [QSA,L]