htaccess alternative

This is a discussion on "htaccess alternative" within the PHP Forum section. This forum, and the thread "htaccess alternative are both part of the Program Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1  
Old May 4th, 2005, 12:27
Junior Member
Join Date: May 2005
Location: bath - england
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
htaccess alternative

Can anybody recommend method of creating global redirecting scripts other than htaccess?

We currently use htaccess to direct visitors who try and access pages which have been deleted or renamed to a page which gives them a list of alternatives. htaccess is also useful for globally directing visitors to a temporary page during development by typing one line of code we can avoid updating sitwide links to a single page.

We want to be able to run a similar script from a windows server because we need full support for asp too, and it is apparently impossible to run these htaccess redirecting scripts on a windows server. (a linux server won't support all of the asp functionality that we need).


Thank You.
Simon Neaves.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old May 4th, 2005, 14:17
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
One option is to use ISAPIRewrite although the proper version of that is paid, the free version may suit your needs.

Does anyone else with more experience with Windows servers have any other options?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old May 4th, 2005, 14:20
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,159
Blog Entries: 7
Thanks: 27
Thanked 19 Times in 16 Posts
Hi Simon....

This isnt straightforward, but it is achievable with pure script.

Essentially, it is made possible by setting a custom error page to catch 404 errors. You can then work out the page requested, and the page to redirect to.

Without going into massive amounts of detail, the above is how it is done.

I have this implemented on several sites already. Let me know if you get stuck.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old May 4th, 2005, 15:32
Junior Member
Join Date: May 2005
Location: bath - england
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Guys, both useful suggestions.

I'll look closely at the ISAPI re-write to see if it will do what we need.

Thanks also Rob, this looks like a useful fallback which I may well investigate aswell.

si
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old May 4th, 2005, 16:44
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,159
Blog Entries: 7
Thanks: 27
Thanked 19 Times in 16 Posts
Simon.....

I could do this for less than the cost of ISAPIRewrite.

Something to consider, anyway.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old May 9th, 2005, 09:28
Junior Member
Join Date: May 2005
Location: bath - england
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Rob,

Thanks for the offer, I will certainly bear it in mind.

One thing we liked about htaccess (and ISAPIRewrite it seems) is that we can set up a single global script in a matter of minutes, which will permanently monitor all traffic and intercept any requests for non-existant URLs. We also use htaccess for redirecting from specific a page to a newer/temporary version of the page with a different name. The URL field is not affected.

Am I write in saying that if I do it with pure script as you suggested, I will have to insert script at the top of all my pages (probably as an include file) which will do the redirect manually?

I like the look of ISAPIRewrite. Has anybody got any experience in setting it up on a shared host? I have just emailed my host www.drundo.net and am waiting for a reply as to whether it is possible.

Thanks for your help.

Simon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old May 10th, 2005, 16:52
Junior Member
Join Date: May 2005
Location: bath - england
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Hello again.

I've just spoken to the boss here and the main reasons why htaccess are importanant are:

1) many of the search engines are still listing pages which no longer exist
2) we have about 700 pages which have been relocated up one folder level.
3) we need to catch any other 404 errors.

Unfortunately, my windows host won't run ISAPIrewrite.

I am interested in your method Rob for catching 404 errors. Is it possible to do this without configuring IIS as illustrated here: http://www.4guysfromrolla.com/webtech/061499-1.shtml

I am on a shared host and won't be able to configure IIS in this way.

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
htaccess, alternative

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Alternative to frames jonnymorris Web Page Design 13 May 10th, 2008 09:23
Alternative to Site5? SmokeyBubbles Hosting & Domains 7 Jun 27th, 2007 16:32
ppc alternative timmytots Webforumz Cafe 0 Dec 15th, 2006 17:27
Alternative stylesheets benbacardi Web Page Design 18 May 14th, 2004 13:22


All times are GMT. The time now is 05:21.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42