0

任何帮助我进行自定义 URL 扩展的 htaccess 代码

我的意思是如果网址以.clu.lee它应该重写为.php

4

1 回答 1

0

Try this:

RewriteEngine on

RewriteRule ^(.*)\.(clu|lee)$ $1.php

For reference, the Apache docs on mod_rewrite are quite thorough, and for a great intro to Regular Expressions, check this site out.

于 2013-08-26T17:45:53.077 回答