开发者

301 Redirect issue, spaces in old URL?

开发者 https://www.devze.com 2023-03-31 19:16 出处:网络
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 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-开发者_如何学Gola

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


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


Try this:

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

0

精彩评论

暂无评论...
验证码 换一张
取 消