正式将程序更换为Z-Blog PHP版,在此将伪静态和301的配置发出来以作备忘。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{http_host} ^feed.wdssmq.com$ [NC]
RewriteRule ^(?!feed.php).+ http://feed.wdssmq.com [L,R=301]
RewriteCond %{http_host} ^feed.wdssmq.com$ [NC]
RewriteRule ^$ /feed.php [L]
RewriteRule ^feed.asp /feed.php [L]
RewriteRule ^rss.xml /feed.php [L]
RewriteCond %{http_host} !^www.wdssmq.com [NC]
RewriteCond %{http_host} !^feed.wdssmq.com [NC]
RewriteRule ^(.*)$ https://www.wdssmq.com/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\.]+[^/])$ /$1/ [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
#cmt4414
回复
https://www.wdssmq.com
回复