Search Engine Forums - 301 redirect on windows server
Search Engine Forums
Search Engine Forums
Discussion Forum of SEO and Webmaster Related Topics


Our Website Web
[ Submit Express Home ] :: [ Forums Home ] :: [ Register ]
 

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
301 redirect on windows server

 
Post new topic   Reply to topic    Search Engine Forum Forum Index -> Domain Names Forum
View previous topic :: View next topic  
Author Message
stinkybee



Joined: 07 Apr 2005
Posts: 4

PostPosted: Sat Apr 16, 2005 4:18 pm    Post subject: 301 redirect on windows server Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
stinkybee



Joined: 07 Apr 2005
Posts: 4

PostPosted: Wed Apr 20, 2005 10:02 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
stinkybee



Joined: 07 Apr 2005
Posts: 4

PostPosted: Wed Apr 20, 2005 11:40 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
TravelandHoliday



Joined: 13 Nov 2006
Posts: 123
Location: USA

PostPosted: Thu Nov 23, 2006 3:51 am    Post subject: Reply with quote

Good knowledge about 301 redirect. Never set it before.
_________________
Travel and Holiday Blog
Back to top
View user's profile Send private message Visit poster's website
Stella



Joined: 28 Nov 2006
Posts: 14

PostPosted: Tue Dec 05, 2006 1:13 am    Post subject: Reply with quote

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.
_________________
Business Directory
Back to top
View user's profile Send private message Visit poster's website
porov



Joined: 14 Dec 2006
Posts: 19

PostPosted: Thu Dec 14, 2006 10:36 pm    Post subject: Reply with quote

I have never used 301 redirect, can i use this with asp.net?
_________________
http://hollandlimo.net/
http://freehosting1.net/
Back to top
View user's profile Send private message Visit poster's website
clearwriter



Joined: 23 Mar 2008
Posts: 96

PostPosted: Sun Aug 10, 2008 10:34 pm    Post subject: Reply with quote

Ask your host. they will tell you what to add in your .htaccess file.
_________________
SEO Articles | best teeth whitening | domain ip address | business sale ny
Back to top
View user's profile Send private message Visit poster's website
bikini tv



Joined: 05 Aug 2008
Posts: 7

PostPosted: Sat Aug 16, 2008 10:26 am    Post subject: Reply with quote

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 womens bikini swimwear.
Back to top
View user's profile Send private message
guruananth



Joined: 26 Jul 2008
Posts: 199

PostPosted: Fri Aug 29, 2008 12:09 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Search Engine Forum Forum Index -> Domain Names Forum All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group