Changing Directory by 301

Oct 19, 2010 at 3:42 PM

Hi Folks, I've been looking for a answer for a (maybe) simple question but never found the exact solution.

I've changed some locations and I want to redirect using 301 for google issues and I getting some problems..

Here it is:


My old query:

My new query:

I've tried:

RewriteRule  ^/([$a-zA-Z0-9_-]+)/na_cidade_de_([a-zA-Z0-9_-]+)-([a-zA-Z0-9_-]+)/((\&.+)|())         /$1/$2-$3/ [L]

thats what I want.. Change the old path do the new one.

I'm sorry if you have answered this before but I really didnt fint it at all








Oct 20, 2010 at 3:27 AM
Sounds about right. When you want to include a dash ( -) in a range, I think it needs to be the first character in the range. So, not [a-z-] , but [-a-z] . Also, try the testdriver.exe program to check your rule against sample input irks. Good luck.