如何更改.htaccess文件中的url
示例我有一个网址:
www.mysite.com/folder1/index.php?category=cs
我希望它看起来像:
www.mysite.com/folder1/cs
任何建议请:)
试试这个:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /folder1/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)'/?$ index.php?category=$1 [QSA]
</IfModule>