.htaccess - HTAccess Page Redirecting problem with & sign -


I am trying to optimize my pages.

I have a link in my page.

  http://abc.com/test.php?Section=pages&title=feedback+%26+enquiry  

This works fine and The value of the title is "Reaction and investigation" I changed the link above to:

  http://abc.com/pages/feedback+%26+enquiry.htm  

I wrote the code like htaccess:

  option + followed links reverted on the revival arrayal index. HTM $ index.php Rev. Rev. ^ (. *) / (. *) \. Htm $ / test.php?Section=$1title=$2 [R]  

I was expecting the result, but I was surprised to see the error because the value of the title or "feedback" And new variables are being created with "query" value ""

I am unable to find the error. I think this is an HTACAC conversion error, how can I work it out?

I tried backsing but the internal server error got my new HTXus code:

  option + followed links reverted on the regrettable index .htm $ index.php Rev. *) / (. *) \. Htm $ index.php? Section = $ 1 & Amp; Title = $ 2 [RB]  

My Apache version is: 2.2.4

If you are running Apache 2.2, you can use the B flag to avoid any backtracks in your re-written URL:

  RewriteRule ^ page / (. *) \. Otherwise, in Apache 2.0, you can try to use the internal  RewriteMap  .htm $ /test.php?title=$1 [R, B]  

escape :

  rewrite rule / page / (. *) \. Htm $ /test.php?title=$ {escape: $ 1} [R]  

Comments