Godaddy win host and Linux host settings 301 redirection to achieve: Custom Home page access order

time:10-09-24 forum:Foreign domain name registration and virtual host space service
  The control panel that is reproduced from the http://hi.baidu.com/wagf/blog/item/f1fac0c88ea9ef197f3e6f09.html

odaddy win host custom home page access order
Godaddy does not have the custom home order function as domestic, but what do we need to do? Linux host can be implemented with htaccess, and under the windows host? In the IIS settings? Not very realistic... The idea of using 301 redirects is better than refresh code in terms of short response time and SEO.

General CMS rarely uses default.asp or default.html as the front page, usually index.asp or home.asp.

now, for example, I want to use home.asp as the front page instead of index.asp, so do it.

set up a default.asp, in which 301 directional code is written: copy content to the clipboard
code:
[code].lt;% @ Language=VBScript%.gt;
.lt;%
Response.Status=.quot; 301 T;
%.gt; [/code]
godaddy in the default homepage order, default.asp is higher than index.asp (very scientific), so that default.asp is accessed first, and the code in the inside is automatically 301 directed to home.asp, and our purpose is to achieve the

Godaddy master default home page access sequence. >default.html
default.htm
default.aspx
default.php
default.shtml
default.shtm
SEO school recollection 301 permanent redirection code set
direct copy of the following code available, remember to modify the jump code


1, ASP under the permanent redirection

[code].lt;% @ Language=VBScript / >; 301 Onse.AddHeader.Quot; Location.quot;.Quot; http://bbs.idcspy.com.quot;
%.gt; [/code]

name the code in ASP file as default.asp or index.asp and so on under another space root directory. Ot;.Gt;
private void Page_Load (object sender, System.EventArgs E)
{
[code].lt;%
response.setStatus (301);
response.setHeader (.Quot; Location.quot;.Quot; http://bbs.idcspy.com.quot;); 1.1301 Moved Permanently.quot;);
header (.Quot; Location: http://bbs.idcspy.com.quot;);
exit (); [/code]

5, 301 permanent redirects / >
[code]Options FollowSymLinks
RewriteEngine on
RewriteCond%{HTTP_HOST} ^seoxn.org.cn.#91; NC.#93;
RewriteRule ^. ^ (. *) $http://bbs.idcspy.com$1.#91; L, R=301.#93; [/code]

use regular 301 steering to achieve pseudo static
[code]Options FollowSymLinks
RewriteEngine on
RewriteRule.
6, Apache in vhosts.conf configure 301 to

to achieve URL normalization, SEO usually turns the domain name without WWW to the WWW domain name. T; /VirtualHost.gt;

.lt; VirtualHost *: 80.gt;
ServerName seoxn.org.cn
RedirectMatch permanent / (. *)

prev:One yuan and two copies of the overdue m... next:GoDaddy's free X.co ultra short domain n...
post comment
Notice



approved   The most inspirational live street "...   Ji'nan old shoemaker has made more t...   Ji'nan auxiliary police "storm" Engl...   Australian 16 year old girl, driving...   North drift Female Boxers earn "bloo...
rand   Expired domain name query   Solution for GoDaddy two level domai...   Geekstorage virtual host 50 percent ...   Godaddy Asia Pacific engine room (Si...   Godaddy free host traffic after over...
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com