我想从 更改以下我的网站网页网址:更改example.com/dashboard.php到example.com/index.php?action=dashboard
mysite.com/profile.php
到
mysite.com/index.php?action=profile
哪种语言适用于此?我试了一堆.htacesss
的代码,但似乎没有工作!有什么.htacess
建议?
我的代码:
RewriteEngine On
RewriteRule ^profile.php(.+)$ /index.php?action=$1 [L]
那你试试,没有工作? –
我刚刚编辑它抱歉 – user3251426