首页 文章

重写一个链接的漂亮网址

提问于
浏览
1

我需要帮助,我有像 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 回答

相关问题