| View previous topic :: View next topic |
| Author |
Message |
stinkybee
Joined: 07 Apr 2005 Posts: 4
|
Posted: Sat Apr 16, 2005 4:18 pm Post subject: 301 redirect on windows server |
|
|
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 |
|
 |
stinkybee
Joined: 07 Apr 2005 Posts: 4
|
Posted: Wed Apr 20, 2005 10:02 am Post subject: |
|
|
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 |
|
 |
stinkybee
Joined: 07 Apr 2005 Posts: 4
|
Posted: Wed Apr 20, 2005 11:40 am Post subject: |
|
|
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 |
|
 |
TravelandHoliday
Joined: 13 Nov 2006 Posts: 123 Location: USA
|
Posted: Thu Nov 23, 2006 3:51 am Post subject: |
|
|
Good knowledge about 301 redirect. Never set it before. _________________ Travel and Holiday Blog |
|
| Back to top |
|
 |
Stella
Joined: 28 Nov 2006 Posts: 14
|
Posted: Tue Dec 05, 2006 1:13 am Post subject: |
|
|
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 |
|
 |
porov
Joined: 14 Dec 2006 Posts: 19
|
|
| Back to top |
|
 |
clearwriter
Joined: 23 Mar 2008 Posts: 96
|
|
| Back to top |
|
 |
bikini tv
Joined: 05 Aug 2008 Posts: 7
|
Posted: Sat Aug 16, 2008 10:26 am Post subject: |
|
|
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 |
|
 |
guruananth
Joined: 26 Jul 2008 Posts: 199
|
Posted: Fri Aug 29, 2008 12:09 pm Post subject: |
|
|
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 |
|
 |
|