Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Need help to write a Dispatcher rule.

Avatar

Level 3

Hi,

 

XML file(filename_in.xml) is there in dispatcher location "/mnt/var/www/html" and we are able to access that XML file via "http:www.domain.com/in/en/filename.xml".

We are achieving this because we have written a rule in dispatcher as below

RewriteRule ^/in/en/filename.xml   /filename_in.xml [PT,L]

 

but now we wanted that XML file to be accessed via "http:www.domain.com/filename.xml", how do we achieve this.

Could you please help us writing the rule for the same.

 

Thanks in Advance.!

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

You need to write something like

 

RewriteRule ^/filename.xml$ /content/dam/exampleco/filename_in.xml [NC,PT]



Arun Patidar

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

You need to write something like

 

RewriteRule ^/filename.xml$ /content/dam/exampleco/filename_in.xml [NC,PT]



Arun Patidar

Avatar

Community Advisor

Hi @Aj_9625932 

You can try the below one

RewriteRule ^/?filename.xml$ /in/en/filename.xml [NC,PT]

 

sherinregi_0-1693219904805.png