homepage Welcome to WebmasterWorld Guest from 54.166.122.86
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

    
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?
netnerd

10+ Year Member



 
Msg#: 2281 posted 11:22 am on Nov 5, 2004 (gmt 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.

 

Easy_Coder

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 2281 posted 2:27 pm on Nov 5, 2004 (gmt 0)

Yes... read my post here
[webmasterworld.com...]

netnerd

10+ Year Member



 
Msg#: 2281 posted 2:36 pm on Nov 5, 2004 (gmt 0)

Can i do this for individual pages only? I dont want to run everything on my server as ASP.

mattglet

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 2281 posted 4:08 pm on Nov 5, 2004 (gmt 0)

Here's [webmasterworld.com] the think that shows how to do individual 301 redirects on a per-page basis.

netnerd

10+ Year Member



 
Msg#: 2281 posted 4:21 pm on Nov 5, 2004 (gmt 0)

Yeah - thats great - but can it be done server side rather than having to write it on each page?

mattglet

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 2281 posted 4:56 pm on Nov 5, 2004 (gmt 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.

bakedjake

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



 
Msg#: 2281 posted 4:59 pm on Nov 5, 2004 (gmt 0)

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.

mattglet

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 2281 posted 5:07 pm on Nov 5, 2004 (gmt 0)

Jake-

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

bakedjake

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



 
Msg#: 2281 posted 5:11 pm on Nov 5, 2004 (gmt 0)

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.

mattglet

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 2281 posted 5:15 pm on Nov 5, 2004 (gmt 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!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved