Welcome to WebmasterWorld Guest from 54.145.65.62

Forum Moderators: ocean10000

Message Too Old, No Replies

Server Side Redirects in Windows IIS 5?

I want to run all my .htm pages to .asp on a site - how do i do it?

     
11:22 am on Nov 5, 2004 (gmt 0)

Full Member

10+ Year Member

joined:Mar 3, 2003
posts:324
votes: 0


I have a website written with .asp extensions. I want to change them to .htm extensions but still run them as .asp.

Its on a windows IIS5 server. - Is there an easy server side way to do this, without having to replace all the existing pages with new headers?

Also, i want to leave a 301 redirect for the existing pages to point to their new equivalent .htm pages.

2:27 pm on Nov 5, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 2, 2003
posts:1184
votes: 0


Yes... read my post here
[webmasterworld.com...]
2:36 pm on Nov 5, 2004 (gmt 0)

Full Member

10+ Year Member

joined:Mar 3, 2003
posts:324
votes: 0


Can i do this for individual pages only? I dont want to run everything on my server as ASP.
4:08 pm on Nov 5, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 12, 2002
posts:1482
votes: 0


Here's [webmasterworld.com] the think that shows how to do individual 301 redirects on a per-page basis.
4:21 pm on Nov 5, 2004 (gmt 0)

Full Member

10+ Year Member

joined:Mar 3, 2003
posts:324
votes: 0


Yeah - thats great - but can it be done server side rather than having to write it on each page?
4:56 pm on Nov 5, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 12, 2002
posts:1482
votes: 0


I'm 99% positive that there's no way to perform 301 redirects on a per-page basis via IIS.

You have to explicitly insert the Response.Status on each page you want redirected.

4:59 pm on Nov 5, 2004 (gmt 0)

Administrator from CA 

WebmasterWorld Administrator bakedjake is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 8, 2003
posts:3876
votes: 49


I'm 99% positive that there's no way to perform 301 redirects on a per-page basis via IIS.

Good! We'll learn you something new today. ;-)

[webmasterworld.com...]

Instead of right clicking on the site, simply right click on the particular page you want to redirect in IIS.

5:07 pm on Nov 5, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 12, 2002
posts:1482
votes: 0


Jake-

How is that a per-page redirect via IIS? I'm not totally understanding it yet...

5:11 pm on Nov 5, 2004 (gmt 0)

Administrator from CA 

WebmasterWorld Administrator bakedjake is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 8, 2003
posts:3876
votes: 49


You have to redirect each page individually. So you go into the ISM, click on the page you want to redirect, and then fill the properties box out with a destination.

My instructions in that thread were for an entire site, but they work for folders and individual pages too. Just right click on the entity you want to redirect.

5:15 pm on Nov 5, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 12, 2002
posts:1482
votes: 0


Ah, got it now. I was confused because the referenced post talks about doing a site-wide redirect. I wasn't aware of the available options at the page level.

That's why I left my 1% open... Thanks Jake!