.htaccess - Redirect 301 not working because of Long Dash (special character) -
i've got issue when redirecting 1 of blog's url:
as can see %e2%80%93
pain in a**, looked @ diverse forums, no solution there appeared solve situation.
i put line in .htaccess
:
rewriterule ^category/moving-to-barcelona-tips/barcelona-legality([^.%e2%80%93])barcelona-shopping-health-public-transport(.*)$ category/moving-to-barcelona-tips/barcelona-day-life$1 [r=301,l]
p.s: i've got rewriteengine on , rewritebase / etc. i've redirected other urls, 1 not working.
many in advance! :)
florian
you can use take regex avoid matching character:
rewriterule ^category/moving-to-barcelona-tips/barcelona-legality.*?barcelona-shopping-health-public-transport(.*)$ category/moving-to-barcelona-tips/barcelona-day-life$1 [r=301,l,b]
note use of .*?
instead of character match arbitrary string there.
Comments
Post a Comment