dispatcher file accessibility | Community
Skip to main content
Level 3
August 24, 2023
Solved

dispatcher file accessibility

  • August 24, 2023
  • 1 reply
  • 929 views

Hi,

 

We have 1 xml file(sample.xml) in dispatcher server, located under

"/mnt/var/www/html/" and able to access via "https://www.domain.com/in/en/sample.xml" URL.

 

we wanted to understand where this configuration is being set so it is accessible via "https://www.domain.com/in/en/sample.xml" URL.

 

Thanks,
Ajay Boddu.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by sherinregi-1

hi @aj_9625932 

What the below rewrite does is 

RewriteRule ^/?(.+)$ /in/en/$1 [P]

 

it will looks for something like http://example.com/index.xml from the browser and once it reaches Apache , it adds the in/en so you can point to the right path.So in the end you achieve the same thing removed the in/en from browser but inorder to map to the file add the same through rewrite

 

http://example.com/in/en/index.xml

 

1 reply

sherinregi-1
Community Advisor
Community Advisor
August 24, 2023

Hi @aj_9625932 

You can use the below rule to add the in/en to the url

RewriteRule ^/?(.+)$ /in/en/$1 [P]

 

Also refer to the below link on how to enable the rewrites

https://www.axamit.com/blog/adobe/dispatcher-5

 

 

In case you want to test the same please use the below link

https://technicalseo.com/tools/htaccess/

 

 

Level 3
August 24, 2023

Thanks.! I want to remove "/in/en" from the current URL.

 

FYI, this XML file is only present in Dispatcher server not in Author and Publish instances.

 

We are not sure where this configuration is being done,

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

but now we wanted this XML file to be opened via "http:www.domain.com/filename.xml".

sherinregi-1
Community Advisor
sherinregi-1Community AdvisorAccepted solution
Community Advisor
August 24, 2023

hi @aj_9625932 

What the below rewrite does is 

RewriteRule ^/?(.+)$ /in/en/$1 [P]

 

it will looks for something like http://example.com/index.xml from the browser and once it reaches Apache , it adds the in/en so you can point to the right path.So in the end you achieve the same thing removed the in/en from browser but inorder to map to the file add the same through rewrite

 

http://example.com/in/en/index.xml