我正在尝试重写网址,但我有问题请帮忙
这就是我要做的......这是我现在的.htaccess
<IfModule mod_security.c>
# Turn off mod_security filtering.
SecFilterEngine Off
# The below probably isn't needed,
# but better safe than sorry.
SecFilterScanPOST Off
</IfModule>
LimitRequestBody 10000000000000
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+) profiles/index.php?folder=$1&%{QUERY_STRING} [L]
我想将此网址//muscleathletes.com/index.php?page=supplements
重写为“//muscleathletes.com/supplements(或page_name)
当我添加规则RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?page=$1
时,没有任何更改网址仍然相同
你能给我一点帮助吗?
答案 0 :(得分:0)
块引用
您是否在浏览器中输入了muscleathletes.com/index.php?page=supplements而不是muscleathletes.com/supplements
块引用
YES!确定