CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   .htaccess rewrite help (http://www.codingforums.com/showthread.php?t=53239)

gsnedders 02-25-2005 06:03 PM

.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 :)

JamieR 02-25-2005 09:55 PM

Wouldn't
Code:

Redirect /error.php?type=500 /error.php?type=404
work?

HTH

Jamie.

gsnedders 02-26-2005 01:11 PM

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

JamieR 02-26-2005 11:11 PM

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.


All times are GMT +1. The time now is 01:58 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.