how to skip url shortning for some specfic path. - AEM dispatcher
Hi All,
I have written some rewrite rules for shortening the URL.
RewriteRule ^/content/we-retail/de/de/(.*.html)$ https://%{SERVER_NAME}/$1 [NE,R=301,L]
RewriteRule ^/(.*.html)$ /content/we-retail/de/de/$1 [PT,L]
with this rule, I am able to short URL from this ( /content/we-retail/de/de/plp.html) to (/plp.html).
But I want this rule should not work on some specific path.
ex: if someone is hitting this page. --- > /content/test/de/de/plp.html .
it should exclude this rule.
so I have added a rule to skip the condition but somehow it's not working
# skip url shortning condition for test
RewriteCond %{REQUEST_URI} !^/content/test/de/de/
Could you please help me how to exclude some paths in the rewrite rule?