如何在.htaccess中重写此URL?

时间:2012-07-19 15:49:26

标签: .htaccess webserver

如何使用.htaccess重写原始网址?

示例:

原始网址= www.mydomain.com/en/specialroom.php

重写为= www.mydomain.com/en/roomspecial /

先谢谢,最好的问候

1 个答案:

答案 0 :(得分:0)

RewriteEngine On
RewriteRule ^en/roomspecial/$ /en/specialroom.php [L]