thinkphp onethink windows 站点更目录 .htaccess 文件配置教程
无www二级域名跳转到有 www.xxxxx.com 网址
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^ainisj\.cn
RewriteRule ^(.*)$ http://www.ainisj.cn/$1 [R=permanent,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ thisindex.php/$1 [QSA,PT,L]
RewriteRule ^(.*)/school(.*)$ school.php/$2 [QSA,PT]
RewriteRule ^(.*)/blog(.*)$ blog.php/$2 [QSA,PT]
ErrorDocument 403 /errpage/403.html
ErrorDocument 404 /lerrpage/404.html
</IfModule>
发表评论 取消回复