![]() |
|
|
#1
IP: 222.184.115.77
|
|||
|
|||
|
i wanted to redirect because all domains point to one directory and now every domain pints to its directory
where the main domain is other and here it is RewriteEngine On RewriteCond %{HTTP_HOST} ^domain2.com$ [OR] RewriteCond %{HTTP_HOST} ^www.domain2.com$ RewriteRule ^/?$ http://www.domain2/shkupi [R=301,L] |
|
wellcome to www.0058.net
|
|
#2
IP: 222.184.115.77
|
||||||
|
||||||
|
How to do 301 redirects in Apache .htaccess, PHP,ASP
Apache Web Server .htaccess file Apache .htaccess files let you override the Web server configuration on a per-directory hierarchial basis, and are instrumental in the creation of proper 301 redirects. Single Page Redirect: 引用:
Canonical Hostname Redirect (non-www to www): This solution will redirect any page requested via a non-www domain to the same URL with the www domain, and as such it can be placed in the DocumentRoot of your site and will be enforced globally: 引用:
PHP 4 and PHP 5 Single Page Redirect: 引用:
Canonical Hostname Redirect (non-www to www): 引用:
Active Server Pages (ASP) Single Page Redirect: 引用:
Canonical Hostname Redirect (non-www to www): This code should be inserted into a global include file or any ASP script which is executed for every page on the site before the page output begins: 引用:
|
![]() |
| 当前查看此主题的会员: 1 (0 位会员和 1 位游客) | |
| 主题工具 | 搜索本主题 |
| 显示模式 | |
|
|
相似的主题
|
||||
| 主题 | 主题作者 | 版面 | 回复 | 最后发表 |
| Volume! What to do about domains? | sunshine | Google Adsense | 0 | 2006-12-11 09:41 AM |