Skip to main content
Level 3
August 28, 2023
Solved

Need help to write a Dispatcher rule.

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.!

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
Community Advisor
August 28, 2023

You need to write something like

 

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

Arun Patidar

2 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
August 28, 2023

You need to write something like

 

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

Translate
Arun Patidar
sherinregi-1
Community Advisor
Community Advisor
August 28, 2023

Hi @aj_9625932 

You can try the below one

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

 

 

Translate