Jump to content

Help to configure Redirect 301 to change from .ES to .COM


Recommended Posts

Hi, I am using PS 1.6.0.11 and I need help to configure htaccess redirect from my domain .ES to .COM

 

The goal is to redirect full URL .ES to full URL .COM to avoid duplicate content.

 

For example:

 


 

Redirect to:

 


 

I've done a lot of testing but I can not configure it.

 

With some variations, I have basically tried:

 

Option 1

 

RedirectMatch permanent ^ $ http (. *): //www.domain.com$1

 

I get an error message "This web page has a redirect loop"  (ERR_TOO_MANY_REDIRECTS)

 

Option 2

 

RewriteCond% {HTTP_HOST}! ^ Www \ .domain \ .com / $ 1

RewriteRule ^ (. *) $ Http://www.domain.com/$1 [R = 301, L]

 

Redirects to http://www.domain.com/es without preserving the full URL (Example: ... / promotions)

 

Thanks for your help.

Edited by kinkibcn (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...