0

We can use below reference 1. Replacing %23 in URL with # using mod_rewrite 2.Redirection on Apache (Maintain POST params)

  1. first url use for replace url [R]. old to new url. like example:

www.cashcon.com/group/desk/ to www.cashcon.com/desk/

2.second url use for redirect url with post data.using [p] like example www.cashcon.com/desk/ to lolcalhost:8080/desk

-> Both are work in separately. But both functionality not work simultaneously. -> How to write [R and P] both rules combin ? -> Any other rules available for replace and redirect with post data for RewriteRule in apache 2 ?

Mister D
  • 31
  • 2
  • 10

1 Answers1

1

You cannot combine these flags in one rule, they are mutually exclusive. But there's also really no reason to. Every time you use the [P] flag to proxy, you are creating a substitute URL.

Either substitute the URL you want for the [P] rule, or redirect to a new URL and proxy when the user returns after the redirect.

covener
  • 17,402
  • 2
  • 31
  • 45