Region picker country selection. redirection is not happening from only 1 country. | Community
Skip to main content
Level 3
August 18, 2023
Solved

Region picker country selection. redirection is not happening from only 1 country.

  • August 18, 2023
  • 3 replies
  • 837 views

Hi,

 

We have 10 different domains for our website, all the countries selection and redirection is happening fine apart from one country.

 

that too only in Dispatcher URL. Author and Publish instances are redirecting fine.

 

we have checked Dispatcher rules, there are lot of rules written, so couldn't understand which rule is causing this issue.

 

Can anyone help us to understand or resolve this issue please.

 

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.
Best answer by Sudheer_Sundalam

@aj_9625932 ,

 

I would start debugging by enabling the dispatcher logs and apache rewrite logs.

Add the below two line in the vhost config to enable the rewrite logs:

# Enable rewrite logs RewriteLogLevel 3 RewriteLog /var/log/httpd/rewrite.log

 

Also, change the dispatcher.log level to debug if this is on a non-prod environment or for a very brief period, on PROD, just to capture the logs.(You may have to work with Adobe CSE if the servers are hosted on AMS to change the dispatcher.log level to debug).

 

Hope this helps!

3 replies

Sudheer_Sundalam
Community Advisor
Sudheer_SundalamCommunity AdvisorAccepted solution
Community Advisor
August 18, 2023

@aj_9625932 ,

 

I would start debugging by enabling the dispatcher logs and apache rewrite logs.

Add the below two line in the vhost config to enable the rewrite logs:

# Enable rewrite logs RewriteLogLevel 3 RewriteLog /var/log/httpd/rewrite.log

 

Also, change the dispatcher.log level to debug if this is on a non-prod environment or for a very brief period, on PROD, just to capture the logs.(You may have to work with Adobe CSE if the servers are hosted on AMS to change the dispatcher.log level to debug).

 

Hope this helps!

Harwinder-singh
Community Advisor
Community Advisor
August 18, 2023

@aj_9625932  few pointers on what might be causing this : 

 

  • Check if there is a rewrite condition that is excluding this specific country redirect.
  • If there are individual rewrites configured for each country , check if the rewrite rule/ rewrite condition is missing for this country.
  • Also check the order of rewrite rules as rewrite rules and rewrite conditions are order sensitive.

Some insights into how rewrite flags work : https://httpd.apache.org/docs/2.4/rewrite/flags.html

 

Preetpal_Bindra
Community Advisor
Community Advisor
August 18, 2023

Hello @aj_9625932 

Your best friends for debugging Dispatcher issues are,

access.log and dispatcher.log

 

To set the Dispatcher.log to either Debug or Trace level open the httpd.conf file and look for the settings shown in the screenshot below. Save and restart apache. Tail both access.log and dispatcher.log and access the page URL in the browser. That should show you whats going on with that country link.

 

 

Hope that helps.

 

thanks,

Preetpal Singh