Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-25-2005, 06:03 PM   PM User | #1
gsnedders
Senior Coder

 
gsnedders's Avatar
 
Join Date: Jan 2004
Posts: 2,340
Thanks: 1
Thanked 7 Times in 7 Posts
gsnedders will become famous soon enough
.htaccess rewrite help

I need someone to write me a small .htaccess script...

I need /error/[some number]/ redirected to /error.php?type=[some number]

Any help will be gratefully taken
__________________
Geoffrey Sneddon
gsnedders is offline   Reply With Quote
Old 02-25-2005, 09:55 PM   PM User | #2
JamieR
Senior Coder

 
JamieR's Avatar
 
Join Date: Oct 2004
Location: United Kingdom
Posts: 3,161
Thanks: 0
Thanked 5 Times in 5 Posts
JamieR is on a distinguished road
Wouldn't
Code:
Redirect /error.php?type=500 /error.php?type=404
work?

HTH

Jamie.
__________________
-Jamie
JamieR is offline   Reply With Quote
Old 02-26-2005, 01:11 PM   PM User | #3
gsnedders
Senior Coder

 
gsnedders's Avatar
 
Join Date: Jan 2004
Posts: 2,340
Thanks: 1
Thanked 7 Times in 7 Posts
gsnedders will become famous soon enough
No, that's a fixed redirect, I need some RegEx, and here's an example:

/error/505/ -> /error.php?type=505
/error/404/ -> /error.php?type=404
__________________
Geoffrey Sneddon
gsnedders is offline   Reply With Quote
Old 02-26-2005, 11:11 PM   PM User | #4
JamieR
Senior Coder

 
JamieR's Avatar
 
Join Date: Oct 2004
Location: United Kingdom
Posts: 3,161
Thanks: 0
Thanked 5 Times in 5 Posts
JamieR is on a distinguished road
o right I see what your after:

try: http://www.webmasterworld.com/forum92/323.htm and
http://www.google.co.uk/search?q=.ht...Ex+redirection

Jamie.
__________________
-Jamie
JamieR is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 03:04 AM.


Advertisement
Log in to turn off these ads.