Monday 15 September 2014

apache - .htaccess RewriteRule with special characters -


I am trying to do this rerelease, though it is not for some strange reason I am thinking that this % Signals that are scouting:

http://site.com/c%content_cc%/more-stuff/in/here

I write it again Trying: http://site.com/ccontent_cc/more-stuff/in/here

when I use it And in my rules, If, that is stating returned it to write properly.

The problem is that the % is often seen in the browser, where it is used in is. You can wrap % characters in parentheses and they are actually treated here, we will pull them from REQUEST_URI . RewriteEngine Rewrite% {/ REQUEST_URI} ^ / c [%] content_cc [%] / (. *) $ If this is a redirect, you will see the R flag Should use:

   

> Reviving OnReverTech% {REQUEST_URI} ^ / c [%] content_cc [%] / (. *) $ Rewrite ^. * Ccontent_cc /% 1 [R, L]

If this is a permanent redirect you should use R = 301

  Rewrite engine should rewrite% {REQUEST_URI} ^ / c [%] content_cc [%] / (. * $ $ RewriteRule). * Ccontent_cc /% 1 [R = 301, L]    

No comments:

Post a Comment