This is a discussion on "301 redirect on windows server (not asp)?" within the Classic ASP section. This forum, and the thread "301 redirect on windows server (not asp)? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
301 redirect on windows server (not asp)?
|
||
| Notices |
![]() |
|
|
LinkBack (1) | Thread Tools |
#1
|
|||
|
|||
|
301 redirect on windows server (not asp)?
Hiya,
I've been searching for this for a while, but can't find a solution. I need to create some 301 redirects for some renamed html pages, but my server is windows based. I can't afford to move to an apache server, so can't do .htaccess or IIS (only works with .asp pages?). What do I do? Much appreciated |
|
|
|
#2
|
|||
|
|||
|
Re: 301 redirect on windows server (not asp)?
|
|
#3
|
|||
|
|||
|
Re: 301 redirect on windows server (not asp)?
Great, that was easier than I thought! Thanks for that, much appreciated. : )
|
|
#4
|
|||
|
|||
|
Re: 301 redirect on windows server (not asp)?
np
|
|
#5
|
|||
|
|||
|
Re: 301 redirect on windows server (not asp)?
I was happy to find that this is possible on Windows servers; however, I tried it and it's not working. I am wanting to redirect an .html file to a .asp file. Is there anything additional I need to do besides using that code for my .html file? Any help is appreciated.
|
|
#6
|
||||
|
||||
|
Re: 301 redirect on windows server (not asp)?
whoa..... way to drag up and old thread.... nice find!!
This is way more difficult, but can be be achieved using a custom 404 error handler.... not for the feint hearted especially if you have multiple pages to do. I would shout me on msn messenger for this one - aspwiz {at} hotmail {dot} com
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#7
|
|||
|
|||
|
Re: 301 redirect on windows server (not asp)?
Apache it's easy with .htaccess =P. And isn't apache free? Apache, Linux, PHP/MySQL = server for nothing.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#8
|
|||
|
|||
|
Re: 301 redirect on windows server (not asp)?
IIS allows you to redirect without scripting. see http://www.accessibility101.org.uk/tips/80.htm for how to do it
|
|
#9
|
||||
|
||||
|
Re: 301 redirect on windows server (not asp)?
Quote:
I'm sure others will find it useful however. The only resolution here is to implement a custom 404 error handler in ASP, or .net and to scrape the requested url, analyse it and deal with it in script - ultimately issuing a 301 redirect that way. Anyway, wgrasty'ss problem has now been resolved with the above method
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
Last edited by Rob; Feb 16th, 2007 at 00:28. |
|
#10
|
|||
|
|||
|
Re: 301 redirect on windows server (not asp)?
You should try this ASP script(s).
http://evolvedcode.net/content/code_smart404/ for handling the custom 404 error messages, which means basically that you should delete/rename your old files and this script will redirect them to the new ones. Works for .htm or .html as well. |
|
#11
|
|||
|
|||
|
Quote:
|
![]() |
| Tags |
| 301, redirect, windows, server, asp |
| Thread Tools | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://webforumz.com/classic-asp/5742-301-redirect-on-windows-server-not.htm
|
||||
| Posted By | For | Type | Date | |
| wgrasty's bookmarks on del.icio.us | This thread | Refback | Feb 14th, 2007 18:17 | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| windows or linux server??? | Gerry | Webforumz Cafe | 11 | Mar 30th, 2008 23:09 |
| Help using MySql on windows server 2003 | TheThrock | Databases | 7 | Aug 29th, 2006 17:54 |
| Quality UK Windows/SQL Server hosting required | D3mon | Hosting & Domains | 8 | Aug 19th, 2005 19:22 |
| Can ASP run on a apache web server on a windows xp home edit | jperson19468 | Classic ASP | 9 | Aug 8th, 2004 10:45 |