iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
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

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-16-2007, 12:20 PM
tamecrow's Avatar
WebProWorld Veteran
 
Join Date: Aug 2007
Location: United Kingdom
Posts: 330
tamecrow RepRank 2
Default 301 redirect - index.asp to domain root

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
... will just put the server into an infinite loop. Basically, is there any way to create an SEO-safe ASP redirect from the index file to domain root? Although I hate to state the obvious, I feel we could have some dupe content issues here.
Reply With Quote
  #2 (permalink)  
Old 08-16-2007, 12:40 PM
incrediblehelp's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,573
incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4
Default Re: 301 redirect - index.asp to domain root

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/
Reply With Quote
  #3 (permalink)  
Old 08-16-2007, 12:44 PM
tamecrow's Avatar
WebProWorld Veteran
 
Join Date: Aug 2007
Location: United Kingdom
Posts: 330
tamecrow RepRank 2
Default Re: 301 redirect - index.asp to domain root

Quote:
Originally Posted by incrediblehelp View Post
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/
Not that I'm aware of. Anywhere that does, has been changed to point at the domain root in recent months. The site is quite large, and we've checked the usual places (header/menu includes - pages that we know link back directly to the front page) and all seems to be OK. Will keep an extra large eye out for this, though.

Does anyone know of a way to perform this kind of redirect in ASP? That would be a good blanket precaution for us.
Reply With Quote
  #4 (permalink)  
Old 08-16-2007, 09:34 PM
WebProWorld Pro
 
Join Date: May 2007
Location: DataCenter
Posts: 169
hostBrain RepRank 1
Default Re: 301 redirect - index.asp to domain root

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----
Reply With Quote
Reply

  WebProWorld > Search Engines > Search Engine Optimization Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 06:37 PM.



Search Engine Optimization by vBSEO 3.3.0