Fail to mapped…redirect to root of primary domain
-
Hi Matthias,
I would like to map https://www.parc3-cheras.com to https://www.cariharta.com/new-launch/parc3-cheras.
However, https://www.parc3-cheras.com redirect to https://www.cariharta.com without mapping (URL changed as well). I had tried the two option below, but no luck.
$_SERVER[“SERVER_NAME”] (default)
$_SERVER[“HTTP_HOST”]Prior to this, the parked domain/alias work correctly without changing the URL https://www.parc3-cheras.com. I try to deactivate the plugin and but now it remains redirect behaviour. I try to hard code the followings, and the parked domain work as normal again.
define(‘WP_HOME’, ‘https://’ . $_SERVER[‘HTTP_HOST’]);
define(‘WP_SITEURL’, ‘https://’ . $_SERVER[‘HTTP_HOST’]);FYI, I also have the following in .htassess to rewrite non-www & http to www & https:
RewriteCond %{HTTP_HOST} !^www\.(.+)$ [NC]
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^/(.*)$ https://www\.%{HTTP_HOST}/$1 [R=301,L]RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301]Any idea on how to make the mapping works? I had tried your plugin at other site but never encounter this before.
Thanks for your time ??
The page I need help with: [log in to see the link]
- The topic ‘Fail to mapped…redirect to root of primary domain’ is closed to new replies.