Update: getting 404 error only when domain is added to mapping. Tried with another domain and all pages work.
please try to provide more information like described here. https://wordpress.org/support/topic/support-rules-2/
Hi. Sorry, not sure how a screenshot would help.
Here you go, just removed my page url.
http://foto.terpe.lt/inkelti/20200910/i59_Screenshot%202020-09-10%20093417.jpg
Again, only when this mapping is turned on, I get 404 errors. Tried playing with different settings, changing from SERVER_NAME to HTTP_HOST. Also checked debug log, saw no apparent errors.
.htaccess has these rules:
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1%{REQUEST_URI} [R=301,QSA,NC,L]
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Plus mod_mime for AddType, mod_expires for caching, Deflate.
Hi. Still waiting for help.
Looks like the problem occurs only when I setup my secondary domain to link to specific page. So in settings:
http[s]://domain2com => https://domain1.com/mypage
This works for home page and when visiting domain2.com I see ‘mypage’ as homepage. However if I try to go to other pages, I keep getting 404 error. If I remove this setting and just keep this:
http[s]://domain2.com => https://domain1.com/
Then everything works. So to me it looks like your plugin is trying to redirect all pages to domain1.com/mypage even when I am going to domain2.com/myanotherpage it tries to open domain1.com/mypage/myanotherpage. Probably, Im not sure. But it def. looks like it. By default it probably should redirect only the homepage, not all other pages.
hy,
there was no further response since you did again not deliver a screenshot with domains visible 😉 you will understand that we can not find out any more if we can not have a look at your site…
anyway, the behaviour you described in your last paragraph is true. the plugin will always perform “wildcard”-mapping for all sub-urls of those defined mappings. this is something we won’t change, since it’s the default behaviour since the beginning of this plugin.
let me know, if everything is clear now for you.
matt