此页面中的htaccess
www.mysite.it/LABS/page.php?id=value
到
www.mysite.it/LABS/value
我尝试这个但不能正常工作
RewriteCond %{REQUEST_URI} LABS/page\.php?name=$1 [NC]
RewriteRule ^([^/]*)$ /page\.php?id=$1 [L]
解决方案?
答案 0 :(得分:0)
答案 1 :(得分:0)
试试这个:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /LABS/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ page.php?/$1 [QSA,L]
</IfModule>