Welcome to WebmasterWorld Guest from 54.145.208.64

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)

10+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



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

10+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



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)

10+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



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)

WebmasterWorld Administrator bakedjake is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



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)

WebmasterWorld Administrator bakedjake is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



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!