年年我发



返回   年年我发 > 网站建设 > 建站交流
用户名
密码
 
注册账号 论坛帮助 会员列表 日历事件网赚工具 标记版面已读

建站交流 讨论网站建设的基本方法、技巧、空间问题讨论、域名交流、
资源分享、技术交流,站长们经常进来看看噢!
注意:不要留下你的网站链接!

回复
 
主题工具 搜索本主题 显示模式
  #1   IP: 222.184.77.140
旧 2007-08-20, 08:13 AM
yahoo yahoo 当前离线
普通会员
 
注册日期: 2006-04-05
帖子: 89
精华: 0
现金: -322 元
资产: -322 元
声望: 10 yahoo 正向着好的方向发展
默认 Canonical Domain Resolution

# Darksky Europe: Canonical Domain Resolution for www.dark-skies.eu/
# File Version : 2006-02-02


# THIS FILE RESIDES AT: 69.73.148.48/darkskyeurope/.htaccess
# a.k.a. (www.)spice-racks.com/darkskyeurope/.htaccess
# a.k.a. (www.)darkskyeurope.spice-racks.com/.htaccess

# DOMAINS: (www.)dark-sky.eu and (www.)dark-skies.eu
# are parked and served from the same server and folder.




# PURPOSE: This file ensures that only www.dark-skies.eu can
# be indexed by search engines and that all other URLs for the
# site serve a site-wide 301 redirect, thus preventing any and
# all potential Duplicate Content issues. Only one URL for any
# page of the site can return a "200 OK" HTTP response code.




# Protect certain files from being web accessible.

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README*



# Stop certain actions being carried out to files on the site.

<Limit GET POST>
order deny,allow
allow from all
</Limit>

<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>



# Define Error Documents for www.dark-skies.eu

ErrorDocument 401 /errors/error.401.html
ErrorDocument 403 /errors/error.403.html
ErrorDocument 404 /errors/error.404.html



# Enable Rewrite Module

Options +FollowSymLinks
RewriteEngine on



# Domain Canonicalisation for Index Files:

# Redirect 69.73.148.48/darkskyeurope/$1/index.(html?|php|asp|cfm) to www.dark-skies.eu/$1/ - WORKING
RewriteCond %{HTTP_HOST} ^69\.73\.148\.48 [NC]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ (.*)index\.(html?|php|asp|cfm)\ HTTP/
RewriteRule ^(.*)index\.(html?|php|asp|cfm)$ http://www.dark-skies.eu/$1 [R=301,L]

# Redirect (www.)(???.)spice-racks.com/darkskyeurope/$1/index.(html?|php|asp|cfm) to www.dark-skies.eu/$1/ - WORKING
RewriteCond %{HTTP_HOST} ^(.*\.)?spice-racks\.com$ [NC]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ (.*)index\.(html?|php|asp|cfm)\ HTTP/
RewriteRule ^(.*)index\.(html?|php|asp|cfm)$ http://www.dark-skies.eu/$1 [R=301,L]

# Redirect (www.)darkskyeurope.spice-racks.com/$1/index.(html?|php|asp|cfm) to www.dark-skies.eu/$1/ - WORKING
RewriteCond %{HTTP_HOST} ^(www\.)?darkskyeurope\.spice-racks\.com [NC]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)index\.(html?|php|asp|cfm)\ HTTP/
RewriteRule ^(.*)index\.(html?|php|asp|cfm)$ http://www.dark-skies.eu/$1 [R=301,L]

# Redirect (www.)dark-sky.eu/$1/index.(html?|php|asp|cfm) to www.dark-skies.eu/$1/ - WORKING
RewriteCond %{HTTP_HOST} ^(www\.)?dark-sky\.eu [NC]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)index\.(html?|php|asp|cfm)\ HTTP/
RewriteRule ^(.*)index\.(html?|php|asp|cfm)$ http://www.dark-skies.eu/$1 [R=301,L]

# Redirect (www.)dark-skies.eu/$1/index.(html?|php|asp|cfm) to www.dark-skies.eu/$1/ - WORKING
RewriteCond %{HTTP_HOST} ^(www\.)?dark-skies\.eu [NC]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)index\.(html?|php|asp|cfm)\ HTTP/
RewriteRule ^(.*)index\.(html?|php|asp|cfm)$ http://www.dark-skies.eu/$1 [R=301,L]



# Domain Canonicalisation for non-Index Files:

# Redirect 69.73.148.48/darkskyeurope/$1/ to www.dark-skies.eu/$1/ - WORKING
RewriteCond %{HTTP_HOST} ^69\.73\.148\.48 [NC]
RewriteRule ^(/home/user31076/public_html/darkskyeurope)?(.*)$ http://www.dark-skies.eu/$2 [R=301,L]

# Redirect (www.)(???.)spice-racks.com/darkskyeurope/$1/ to www.dark-skies.eu/$1/ - WORKING
RewriteCond %{HTTP_HOST} ^(.*\.)?spice-racks\.com$ [NC]
RewriteRule ^(home/user31076/public_html/darkskyeurope)?(.*)$ http://www.dark-skies.eu/$2 [R=301,L]

# Redirect (www.)darkskyeurope.spice-racks.com/$1/ to www.dark-skies.eu/$1/ - WORKING
RewriteCond %{HTTP_HOST} ^(www\.)?darkskyeurope\.spice-racks\.com [NC]
RewriteRule ^(.*)$ http://www.dark-skies.eu/$1 [R=301,L]

# Redirect (www.)dark-sky.eu/$1/ to www.dark-skies.eu/$1/ - WORKING
RewriteCond %{HTTP_HOST} ^(www\.)?dark-sky\.eu [NC]
RewriteRule ^(.*)$ http://www.dark-skies.eu/$1 [R=301,L]

# Redirect dark-skies.eu/$1/ to www.dark-skies.eu/$1/ - WORKING
RewriteCond %{HTTP_HOST} ^dark-skies\.eu [NC]
RewriteRule ^(.*)$ http://www.dark-skies.eu/$1 [R=301,L]




# FEED: (silently feeds all site requests to the content in the /demo folder when taking
# site "offline" for a moment when updating) - N/A

# RewriteCond %{REQUEST_URI} !(.*)demo
# RewriteRule ^(.*)$ /demo/$1 [L]
回复时引用此帖

wellcome to www.0058.net
回复


当前查看此主题的会员: 1 (0 位会员和 1 位游客)
 
主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

论坛启用 BB 代码
论坛禁用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码
论坛跳转

相似的主题
主题 主题作者 版面 回复 最后发表
Rewrite a sub domain to a directory sunshine 建站交流 0 2007-08-19 09:21 PM
Point parked domain to subdirectory yahoo 服务器环境搭建 1 2007-08-18 09:06 AM
mapping multiple domains into the filespace of a single domain smiling 建站交流 0 2007-08-18 01:25 AM
Porn in domain name allowed? sunshine Google Adsense 0 2006-12-11 09:33 AM
How many domain you own to display adsense? sunshine Google Adsense 0 2006-12-11 09:07 AM


所有时间均为北京时间. 现在的时间是 04:25 AM, Free Patent & Patent Ideas


Powered by vBulletin 3.5.2 Chinese Exhibition Happy New Year
©2000 - 2008,Jelsoft Enterprises Ltd  Desiccant Molecular Sieve Weight Loss Bentonite Trade Manager