Htaccess如何将空格重写为特定动态网址的连字符

时间:2014-03-26 08:18:57

标签: .htaccess url replace rewrite

如何在htaccess中重写以下动态网址:

resort.php?location=$location

例如$locationlas vegassan francisco时,我想将网址重写为:

resort.php?location=las-vegas

总之,我需要用连字符替换空格,但仅限于此URL。

,我想在浏览器中显示resort.php?location = las-vegas,但拉斯维加斯是变量$ location感谢

0 个答案:

没有答案