#开启重写引擎
RewriteEngine on
#配置重写规则
RewriteRule seven7/Index.html seven7/index.php [L,NC]
RewriteRule test seven7/test.php [L,NC]
#RewriteRule index.html seven7/1412phpB/20160914/index.php [L,NC]
#分页的伪静态配置
RewriteRule (\d+)_(.*)?.html seven7/1412phpB/20160917/index.php?page=$1&sou=$2 [L,NC]
RewriteRule index.html seven7/1412phpB/20160917/index.php [L]
#防盗链
ReWriteCond %{HTTP_REFERER} !^$ [NC]
ReWriteCond %{HTTP_REFERER} !http://www.study.com.* [NC]
#RewriteRule .*\.(jpeg|png|gif)$ -[F]
RewriteRule .*\.(jpeg|png|gif|jpg)$ 110.gif [L]
#容错处理,当访问不存在的页面时友好提示
ReWriteCond %{REQUEST_FILENAME} !-d
ReWriteCond %{REQUEST_FILENAME} !-f
ReWriteRule .* 404.html [L]
RewriteEngine on
#配置重写规则
RewriteRule seven7/Index.html seven7/index.php [L,NC]
RewriteRule test seven7/test.php [L,NC]
#RewriteRule index.html seven7/1412phpB/20160914/index.php [L,NC]
#分页的伪静态配置
RewriteRule (\d+)_(.*)?.html seven7/1412phpB/20160917/index.php?page=$1&sou=$2 [L,NC]
RewriteRule index.html seven7/1412phpB/20160917/index.php [L]
#防盗链
ReWriteCond %{HTTP_REFERER} !^$ [NC]
ReWriteCond %{HTTP_REFERER} !http://www.study.com.* [NC]
#RewriteRule .*\.(jpeg|png|gif)$ -[F]
RewriteRule .*\.(jpeg|png|gif|jpg)$ 110.gif [L]
#容错处理,当访问不存在的页面时友好提示
ReWriteCond %{REQUEST_FILENAME} !-d
ReWriteCond %{REQUEST_FILENAME} !-f
ReWriteRule .* 404.html [L]