Irish SEO,  Marketing & Webmaster Discussion

 

301 Redirects on Windows 2003

This is a discussion on 301 Redirects on Windows 2003 within the Server / Technical Administration Tips and Queries forums, part of the Webmaster Help category; I am needing to learn how to perform a 301 redirect on Windows 2003 that’s for ASP but the site ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Server / Technical Administration Tips and Queries

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 29-09-2006, 02:56 PM
Hardcore Geek
 
Join Date: Aug 2006
Location: Dublin
Posts: 995
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Gavin has a spectacular aura about
Unhappy 301 Redirects on Windows 2003

I am needing to learn how to perform a 301 redirect on Windows 2003 that’s for ASP but the site is actually html. I have no idea why this server was chosen for hosting the site.

As far as I know to perform a 301 re-direct on an html site I would need ISAPI_Rewrite -http://www.isapirewrite.com/docs/ - I have tried the lite version but it fails to redirect the pages.

I have read that I could use a script command in the header of the page with the redirect but that doesn’t make a difference.

I have also tried going into the properties of the file via IIS and configure the file to redirect but it makes no difference, the file can still be accessed normally (isn’t this option for ASP pages only?)

Here is what I am trying to re-direct.

www.domain.com/index.html > www.domain.com/
www.domain.com/directory/index.html > www.domain.com/directory/

Anyone have any ideas on how this done? Long live apache and .htaccess!
__________________

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 30-09-2006, 04:42 PM
blacknight's Avatar
Web Slave
 
Join Date: Jan 2006
Location: Ireland
Posts: 6,022
blacknight is just really niceblacknight is just really niceblacknight is just really niceblacknight is just really nice
Send a message via ICQ to blacknight Send a message via AIM to blacknight Send a message via MSN to blacknight
Default

Is moving the site to linux an option?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 30-09-2006, 07:49 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 1,939
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
louie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud of
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

from an asp page you will do the redirect as below:

<%
' Permanent redirection
Response.Status = "301 Moved Permanently"
Response.AddHeader "Location", "http://www.domain_name.tld/"
Response.End
%>

from an html page you have to use the Meta refresh tag

<meta http-equiv="refresh" content="1; url=http://www.domain_name.tld/">

where 1 is measured in seconds.
__________________
:. Web Design & Development Web Design Ireland
:. Search Engines Optimization Search Engines Optimization
:. Directory Submission Directory Submission
:. News & Press Release Ireland GiveItSocks.com
:. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories
:. I Have 2 Find It Directory SEF Directory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 02-10-2006, 12:02 PM
Hardcore Geek
 
Join Date: Aug 2006
Location: Dublin
Posts: 995
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Gavin has a spectacular aura about
Default

Quote:
Originally Posted by blacknight View Post
Is moving the site to linux an option?
Not at the moment, management decision

Louie thanks for the code, I'll give that a shot.
__________________

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 02-10-2006, 12:54 PM
blacknight's Avatar
Web Slave
 
Join Date: Jan 2006
Location: Ireland
Posts: 6,022
blacknight is just really niceblacknight is just really niceblacknight is just really niceblacknight is just really nice
Send a message via ICQ to blacknight Send a message via AIM to blacknight Send a message via MSN to blacknight
Default

Quote:
Originally Posted by Cormac View Post
Not at the moment, management decision
Pity ... it would make the problems go away
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 02-10-2006, 06:37 PM
blacknight's Avatar
Web Slave
 
Join Date: Jan 2006
Location: Ireland
Posts: 6,022
blacknight is just really niceblacknight is just really niceblacknight is just really niceblacknight is just really nice
Send a message via ICQ to blacknight Send a message via AIM to blacknight Send a message via MSN to blacknight
Default

Hmmmmm

In Apache you can "trick" the server into parsing any filetype as another eg. you could treat .html files as php
Is the same possible with IIS?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 02-10-2006, 06:46 PM
Hardcore Geek
 
Join Date: Aug 2006
Location: Dublin
Posts: 995
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Gavin has a spectacular aura about
Default

I am not sure if that can also be done with IIS, I am at a very basic level with this.

I did manage to configure ISAPI_Rewrite and redirect all the pages that I needed. That ISAPI_Rewrite is a great tool once you have it up & running.
__________________

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 02-10-2006, 07:00 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 1,939
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
louie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud of
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

ISAPI_Rewrite is the URL Rewrite engine for IIS so yes Blacknight it can be done.
__________________
:. Web Design & Development Web Design Ireland
:. Search Engines Optimization Search Engines Optimization
:. Directory Submission Directory Submission
:. News & Press Release Ireland GiveItSocks.com
:. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories
:. I Have 2 Find It Directory SEF Directory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
2003, 301, redirects, windows

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
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Crontab Equivalent For Windows? blacknight Coding Help 0 09-08-2006 09:57 AM


All times are GMT +1. The time now is 04:53 AM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0