|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Search Engine Optimization Forum SEO is much easier with help from peers and experts! The WebProWorld SEO forum is for the discussion and exploration of various search engine optimization topics. Any non (engine) specific SEO or SEM topics should go here. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Hi all,
Our site has been having a bit of trouble recently, and something has just occurred to me. Although we have http://domain.com redirected to http://www.domain.com, we don't have http://www.domain.com/index.asp redirected to http://www.domain.com. Now, putting a simple ASP redirect on index.asp, similar to the following... Code:
If LCASE(Left(Request.ServerVariables("HTTP_HOST"),4)) <> "www." then
Response.Status = "301 Moved Permanently"
Response.AddHeader "Location", "http://www.domain.com"
Response.End
End If
|
|
||||
|
First question is:
Does your website link to http://www.domain.com/index.asp anywhere? If so stop doing that now and make sure all links point to http://www.domain.com/ |
|
||||
|
Quote:
Does anyone know of a way to perform this kind of redirect in ASP? That would be a good blanket precaution for us. |
|
|||
|
To be honest, I don't think i would worry too much about that.
As incrediblehlep says, as long as there is no internal links pointing to index.asp. Because when people link to you, it will be to the domain, not the index page
__________________
----Don't Call Me Brian---- |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how do i drop index.? from my domain name root? | xecute | Web Programming Discussion Forum | 13 | 09-19-2008 10:32 AM |
| 301 redirect for home/index page | Milo | Other Engines/Directories | 12 | 05-08-2007 11:13 PM |
| ASP dynamic 301 redirect based on Product ID | rumblepup | Web Programming Discussion Forum | 11 | 04-28-2007 08:38 AM |
| 301 redirect when promoting directory to new domain | holmpage | Google Discussion Forum | 0 | 12-18-2006 11:14 PM |
| 301 redirect from domain.com to www.domain.com | braknews | Search Engine Optimization Forum | 3 | 12-14-2005 05:56 PM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |