4

I have a ton of 301 Redirects set up from an old site to a new one (which is running on Joomla 1.6, but that shouldn't matter.)

I have some old url's that have spaces in them, for example: Redirect 301 /city/Louisiana_New%20Orleans http://www.nutcracker.com/yourcity/new-orleans-la

So in my .htaccess file, regardless if I leave the space as a space (between New and Orleans), or leave the %20, it just goes 404, and does not pickup up the new url.

Any suggestions I can try?

Thanks! Bill

1
  • Have you tried enclosing the URL in double quotes? Something like: Redirect 301 "^/city/Louisiana_New Orleans$" http://www.nutcracker.com/yourcity/new-orleans-la should work
    – Viccari
    Aug 29, 2011 at 20:59

2 Answers 2

6

This issue is resolved. Putting the original url in quotes with a literal space solved the problem :-)

0

Try this:

RewriteRule ^/city/Louisiana_New\sOrleans$ http://www.nutcracker.com/yourcity/new-orleans-la

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.