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 / (. *)