Saturday 15 June 2013

wordpress - Htaccess redirection with special chars (%E2%80%8E) -


The question is similar, but the acceptable answer does not work in our case:

The website URL that we are trying to redirect is the following:

The website is running WordPress. We just want to redirect this URL to the base page ()

We first tried the basic 301:

  301 "/ fr / sub-folder /% E2 % 80 Redirection% 8E "http://www.example.com/fr/sub-folder/  

We tried the following:

  RewriteCond% RewriteCond% {REQUEST_URI} ^ / ([a-zA-Z0-9 _-] +) / \% 20 \% E2 \% 80 \% 8E $ rewrite ^ (. *) Http://example.com / Fr / sub-folder /% 1 / [R, L]  

This slightly differentiation:

  Revalidation engine on Rev. Cindy% {REQUEST_URI} ^ / ([A-zA-Z0-9 _-] +) / \% e2 \% 80 \% 8E $ rewrite rule ^ (. *) Http: // ex Ample.com/fr/sub-folder/%1/ [R, L]  <

but nothing is working.

Any help would be appreciated.

Thanks,

You can use this rule:

  rewrite rule / \ xE2 \ x80 \ x8e $ / fr / subfolder [L, r = 302]  

No comments:

Post a Comment