域名转发

ErrorDocument 404 /404.html
DirectoryIndex default.php index.php
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(zysygyy\.com)(:80)? [NC]
RewriteRule ^(.*) http://www.zysygyy.com/$1 [R=301,L]
RewriteBase /ygyy
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#heads
RewriteRule ^index.htm default.php
RewriteRule ^asktw.html asktw.php
RewriteRule ^ask.html ask.php
RewriteRule ^map.html map.php
RewriteRule ^search.html search.php
RewriteRule ^news/([a-zA-Z0-9\-]+)/ newslist.php?catdir=$1 [QSA,L]
RewriteRule ^news/([a-zA-Z0-9\-]+)/?page=([a-zA-Z0-9\-]+)$ newslist.php?catdir=$1&page=$2
RewriteRule ^zt/([a-zA-Z0-9\-]+)/ zt.php?catdir=$1 [QSA,L]
RewriteRule ^zt/([a-zA-Z0-9\-]+)/?page=([a-zA-Z0-9\-]+)$ zt.php?catdir=$1&page=$2
RewriteRule ^([a-zA-Z0-9\-]+)/([a-zA-Z0-9\-]+).html shownews.php?id=$2 [QSA,L]
RewriteRule ^ks/([a-zA-Z0-9\-]+)/ kslist.php?catdir=$1 [QSA,L]
RewriteRule ^intro/([a-zA-Z0-9\-]+)/ intro.php?catdir=$1 [QSA,L]
RewriteRule ^question/([a-zA-Z0-9\-]+)/ showquestion.php?messageid=$1 [QSA,L]
RewriteRule ^zlsb/([a-zA-Z0-9\-]+)/ newslist2.php?catdir=$1 [QSA,L]
RewriteRule ^zlsb/([a-zA-Z0-9\-]+)/?page=([a-zA-Z0-9\-]+)$ newslist2.php?catdir=$1&page=$2

你可能感兴趣的:(域名)