You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by eric tse <hf...@gmail.com> on 2024/03/26 19:27:49 UTC
[users@httpd] rewrite redirect exclude path
Good afternoon afternoon masters,
I have rules initially look like this
*******************************
RewriteRule ^/$ https://frontend.domain.com/foo/bar/ [R, L]
RewriteRule ^/(.*)$ https://backend.domain.com/$1 [P,L]
ProxyPassReverse / https://backend.domain.com/
*********************************
I would like to integrate some requirements,
i.e. if root or path not equal /foo/bar/* or /foo/bar1/* redirect to
https://backend.domain.com/foo/bar
Can you please help what's the best syntax to approach this?
Many thanks,
Eric