htaccess help

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

i need to do a 301 redirect  from



Basically it should redirect to the last digits after the last _
( underscore )

I tried messing with the htaccess but to no avail.

Please Help

Re: htaccess help

effluy wrote:

Quoted text here. Click to load it

You might try something like this:

RewriteEngine On
RewriteRule index\.php\/cPath\/.*_([0-9]+)$ /index.php/cPath/$1 [R,L]

To test if it works to your liking, test it using this URL (I'll keep
that rule in for a while):

Just add any number sequence seperated by underscores after the
"cPath/", and you'll be redirected. The page displayed is just a
debugging page I use to output the contents of $_GET and $_SERVER.

Kim André Akerĝ
(remove NOSPAM to contact me directly)

Re: htaccess help

Quoted text here. Click to load it

Thanks a million

Site Timeline