我需要帮助,我有像 http://website.com/index.php?catg=code&subcatg=code_name 这样的链接,
当我点击此链接时,它会在地址栏中显示此网址,鼠标悬停在任务栏中显示相同的网址 .
我试过这个,
RewriteEngine On
RewriteRule ^index/([A-Za-z0-9-\+]+)/([A-Za-z0-9-\+]+)/?$ http://website.com/index.php?catg=$1&subcatg=$2 [NC,L,QSA]
但它没有奏效 . 有可能将此网址重写为 http://website.com/index/code/code-name ???它必须在地址和任务栏中看起来很漂亮 .
请帮忙
谢谢
1 回答
看起来这可能是您正在寻找的:
URL rewriting that visibly rewrites (changes the URL in the address bar)
您可能只需要添加“R”标志 .