below is my requirement: Suppose I have a URL coming from a browser
http:
I need to add / xyz / abc / xy / before perfomance and .html after it, i.e. use mod_rewrite rewrite rules to change it below url as soon as it gets to dispatcher in AEM (or apache web server)
http://test.aroa.com/xyz/abc/xy/mance.html
To do this, I wrote the following rewrite rule along with some rewrite conditions (rewrite conditions not here)
RewriteRule ^(/.*)$ /xyz/abc/xy$1.html [P,L]
It works for this site, but confuses some other functions by adding / xyz / abc / xy to other URLs as well
Can you suggest me some way by which I can restrict the rewriting of URLs only to the URL // test.aroa.com / and not affect any other URL
I tried to put a rule inside a directory tag named doc-root inside it. but in this case it cannot be applied.
Can someone suggest something that might help
source share