301 redirect on windows server

Domain Names are an important part of SEO. Discuss anything domain name related from registration to grabbing expired domains.
stinkybee
Posts: 4
Joined: Thu Apr 07, 2005 8:34 am
Contact:

301 redirect on windows server

Post by stinkybee »

I have a domain name aliased to another domain, this is causing search engine problems and I have been advised ot change it to a 301 re-direct. My hosting company say that they can not do this but have not given an explaination as to why. Can anyone explain this?

Also, I understand you can use ASP code to issue a 301 redirect under a windows server but will this work if you have to check which domain the user has come from. I can not put the code in a page that is on the aliased domain as it is only a domain and has no web space, the only way to do this would be to check which domain the user came in on and redirect if it is the aliased one. The problem here is whether the search engines will recognise this as a 301 redirect. Does anyone know?
David Herbert

stinkybee
Posts: 4
Joined: Thu Apr 07, 2005 8:34 am
Contact:

Post by stinkybee »

Thanks for the reply, could I not just change the hosting of the domain name that I need to add a 301 redirect to? As I mentioned, the aliased domain name has no web space it just points to my other domain name.
David Herbert

stinkybee
Posts: 4
Joined: Thu Apr 07, 2005 8:34 am
Contact:

Post by stinkybee »

you mentioned before that the 301 redirect ASP code which checks the domain the user has entered would probably not work. I have just entered this domain into a Server header checker service and it gives its status as a 301 moved permanently.

Does this mean that it does actually work?
David Herbert

TravelandHoliday
Posts: 105
Joined: Mon Nov 13, 2006 8:41 am
Location: USA
Contact:

Post by TravelandHoliday »

Good knowledge about 301 redirect. Never set it before.
[url=http://travelandholidaying.com/]Travel and Holiday Blog[/url]

Stella
Posts: 13
Joined: Mon Nov 27, 2006 5:30 pm
Contact:

Post by Stella »

Try this code into htaccess file:

This will redirect all URL's to the domain www and redirect the PR and indexing at some point.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com [NC]
RewriteRule ^(.*) http://www.yourdomain.com/$1 [L,R=301]
</IfModule>

hope this helps.
[url=http://www.bjgyt.com]Business[/url] [url=http://www.dirwizard.com]Directory[/url]

DELETED

ab212.com

Post by DELETED »

DELETED

porov
Posts: 17
Joined: Thu Dec 14, 2006 1:36 pm
Contact:

Post by porov »

I have never used 301 redirect, can i use this with asp.net?

DELETED

Post by DELETED »

DELETED

clearwriter
Posts: 83
Joined: Sun Mar 23, 2008 3:59 am
Contact:

Post by clearwriter »

Ask your host. they will tell you what to add in your .htaccess file.

bikini tv
Posts: 7
Joined: Tue Aug 05, 2008 2:39 am
Contact:

Post by bikini tv »

htaccess does not work with windows servers

you have to use different techniques, you need to use MS IIS to do a 301, and for that you need admin access
Fitting and fashion advice guide to [url=http://women-swimwear.com]womens bikini swimwear[/url].

guruananth
Posts: 172
Joined: Sat Jul 26, 2008 4:11 am
Contact:

Post by guruananth »

301 redirect using script will give the same page rank to newly modified site.you can try with PHP javascript code

_____________________________________
http://www.cannyinfotech.com/mobile.html

jewelora20
Posts: 4
Joined: Fri Nov 12, 2010 11:08 pm
Contact:

Re: 301 redirect on windows server

Post by jewelora20 »

hello!!Great Stuff! Thanks for the good info. Cheers!

Post Reply

Who is online

Users browsing this forum: No registered users and 53 guests