Page 1 of 2
301 redirect on windows server
Posted: Sat Apr 16, 2005 8:18 am
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?
Posted: Wed Apr 20, 2005 2:02 am
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.
Posted: Wed Apr 20, 2005 3:40 am
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?
Posted: Wed Nov 22, 2006 7:51 pm
by TravelandHoliday
Good knowledge about 301 redirect. Never set it before.
Posted: Mon Dec 04, 2006 5:13 pm
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.
ab212.com
Posted: Tue Dec 12, 2006 6:33 am
by DELETED
DELETED
Posted: Thu Dec 14, 2006 2:36 pm
by porov
I have never used 301 redirect, can i use this with asp.net?
Posted: Wed Dec 12, 2007 10:42 am
by DELETED
DELETED
Posted: Sun Aug 10, 2008 2:34 pm
by clearwriter
Ask your host. they will tell you what to add in your .htaccess file.
Posted: Sat Aug 16, 2008 2:26 am
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
Posted: Fri Aug 29, 2008 4:09 am
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
Re: 301 redirect on windows server
Posted: Fri Nov 12, 2010 11:13 pm
by jewelora20
hello!!Great Stuff! Thanks for the good info. Cheers!