apache重定向
2013-05-24 11:24
260 查看
301重定向:域名重定向,URL更改
RewriteEngine on
RewriteCond %{http_host} ^juhuisuan.com [NC]
RewriteRule ^(.*)$ http://www.juhuisuan.com$1 [R=301,L]
内容重定向,URL不变
RewriteCond %{http_host} ^ad.pv25.com
RewriteRule ^(.*)$ /Index.php/Bidding/ [L]
非本域名禁止访问
SetEnvIfNoCase Referer "^http://www.juhuisuan.com" local_ref=1
<FilesMatch ".*(tongji|tongjim)$">
order Allow,Deny
Allow from env=local_ref
</FilesMatch>
禁止IP访问
<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
Deny from 101.226.129.182
Deny from 115.236.139.174
Deny from 122.225.98.78
</Directory>
RewriteEngine on
RewriteCond %{http_host} ^juhuisuan.com [NC]
RewriteRule ^(.*)$ http://www.juhuisuan.com$1 [R=301,L]
内容重定向,URL不变
RewriteCond %{http_host} ^ad.pv25.com
RewriteRule ^(.*)$ /Index.php/Bidding/ [L]
非本域名禁止访问
SetEnvIfNoCase Referer "^http://www.juhuisuan.com" local_ref=1
<FilesMatch ".*(tongji|tongjim)$">
order Allow,Deny
Allow from env=local_ref
</FilesMatch>
禁止IP访问
<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
Deny from 101.226.129.182
Deny from 115.236.139.174
Deny from 122.225.98.78
</Directory>
相关文章推荐
- dos 内容重定向符 >和>>
- nginx子目录301重定向到其他域名URL
- 如何现实CITRIX XenAPP内容重定向
- Nginx用户认证与域名重定向
- 域名从www跳转到非www,Apache和Nginx2种解决方式
- Nginx域名重定向
- 域名重定向的快速实现,解决80端口被屏蔽等
- 运维小记-域名多次重定向导致报警
- django+apache +linux 图片上传中文问题
- Ubuntu上安装Apache、MySql和PHP
- LINUX-APACHE服务的配置
- apache无法启动的可能原因分析及对策
- Apache开启Gzip压缩设置
- An Introduction to Apache Avro
- Apache Avro
- Apache Struts ‘ParameterInterceptor’类OGNL安全绕过漏洞
- apache+php配置
- 安装xampp后apache不能启动解决方法大全
- Ubuntu+PHP+Apache+Xdebug 使用方法
- Error in metadata: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastor