标签: .htaccess url replace rewrite
如何在htaccess中重写以下动态网址:
resort.php?location=$location
例如$location为las vegas或san francisco时,我想将网址重写为:
$location
las vegas
san francisco
resort.php?location=las-vegas
总之,我需要用连字符替换空格,但仅限于此URL。