标题:
[教程]
seo的考虑 怎么禁止让IP访问站点?
[打印本页]
作者:
pilizhanshen000
时间:
2013-8-27 12:41
标题:
seo的考虑 怎么禁止让IP访问站点?
seo的考虑 怎么禁止让IP访问站点?
server {
listen 80;
server_name hn_ceeey_cn;
root /www/web/hn_ceeey_cn/public_html;
index index.shtml index.html index.php index.htm;
error_page 400 /errpage/400.html;
error_page 403 /errpage/403.html;
error_page 404 /errpage/404.html;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
}
我想实现:当使用IP访问的时候 301跳转到指定的网址!或者直接IP就不能访问也可以!
作者:
linwuliao
时间:
2013-9-1 20:28
自己创建一个虚拟主机,把网站放创建的这个虚拟主机里面,然后用php写一个301跳转放到default文件夹也就是默认网站里、
作者:
cmcmc
时间:
2013-9-2 02:35
WDCP的web服务引擎切换成apache,用.htaccess来实现301重定向
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]
复制代码
欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/)
Powered by Discuz! 7.2