一个htaccess伪静态规则,求lnmp上的修改方法
下面这条规则怎么修改才能用到lnmp上呢?<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} [^.]+\.4wei\.cn$
RewriteCond %{HTTP_HOST} !^{1,3}\.4wei\.cn$
RewriteCond %{HTTP_HOST} !^(admin|blog|www)\.4wei\.cn$
RewriteRule ^/?$ %{HTTP_HOST}
#将12345.4wei.cn的请求重写到 4wei.cn/content.12345.html
RewriteRule ^(\d+)\.4wei\.cn$ /content/$1.html
</IfModule>
<FilesMatch (.*)\.html$>
order allow,deny
deny from all
</FilesMatch>
回复 1# 的帖子
伪静态太不了解
页:
[1]