Forum Replies Created

Viewing 15 replies - 16 through 30 (of 201 total)
  • Plugin Contributor Gustavo Straube

    (@gustavostraube)

    Hello,

    Sorry for the late response. I’ve been really busy in the past (quanrantine) months. Were you able to fix the redirect you mentioned above? If you don’t and you still need help, please give me more details on what’s happening. Are you getting any errors?

    Regards

    Plugin Contributor Gustavo Straube

    (@gustavostraube)

    Hello,

    Multiple Domain plugin doesn’t handle single path mappings, such as /subA/ to /subB/. If you add a domain with a path (a.k.a. full URL) to the plugin settings, it won’t work the way you want. Actually, I have no idea how it’ll behave in that case. I suppose this plugin is not what you’re looking for.

    Regards

    Plugin Contributor Gustavo Straube

    (@gustavostraube)

    Hello,

    This is a question that has been asked repeatedly over time. The solution is usually related to DNS/domain set up on the hosting side. It’s hard to provide precise instructions for every scenario, since hosting panels/functionality changes from one company to another — not everybody uses cPanel, for instance.

    In any way, the general advice is:

    1. Make sure the DNS records for all domains point to the same server: IP for A records, or main domain for CNAME records
    2. Don’t use domain redirects. If you’re using Multiple Domain, you don’t want users to get redirected from additional domains to the main one
    3. Double check your web server is ready to handle those requests. If you’re seeing a CGI message or a default parked domain page, something is not set up correctly

    I hope the tips above can help you guys.

    Cheers!

    Plugin Contributor Gustavo Straube

    (@gustavostraube)

    Hello,

    It seems there is some restriction in place on your server. By any chance, do you have a rule or something to avoid other sites to add your images to them? I’m supposing that because, when opening the image in a new tab, it works perfectly. It only breaks when loading from the page. I guess there is a rule somewhere, in the Apache’s .htaccess file (manually added or automatically by some plugin) or even in a lower level (imposed by your hosting service) that blocks those requests. It only happens when the referrer is different than bayernszektor.hu.

    Following, there are two simple cURL requests to reproduce the issue.

    With https://bayernszektor.hu/ as the referrer:

    curl 'https://pannonbajor.hu/wp-content/uploads/2020/07/die-meisterschale-sie-wird-in-der-saison-2020-2021-spaetestens-am-22-mai-vergeben--450x270.jpg' \
        -H 'referer: https://bayernszektor.hu/' \
        -vvv -s \
        --insecure \
        --output 'output.jpg'

    The response comes with these headers, which is the expected:

    < HTTP/2 200 
    < date: Sun, 12 Jul 2020 14:49:03 GMT
    < server: Apache
    < last-modified: Sat, 11 Jul 2020 07:57:44 GMT
    < etag: "84d5-5aa25d00f8c4b"
    < accept-ranges: bytes
    < content-length: 34005
    < cache-control: max-age=31536000
    < expires: Mon, 12 Jul 2021 14:49:03 GMT
    < referrer-policy: same-origin
    < content-type: image/jpeg

    However, when having https://pannonbajor.hu/ in the referrer header:

    curl 'https://pannonbajor.hu/wp-content/uploads/2020/07/die-meisterschale-sie-wird-in-der-saison-2020-2021-spaetestens-am-22-mai-vergeben--450x270.jpg' \
        -H 'referer: https://pannonbajor.hu/' \
        -vvv -s \
        --insecure \
        --output 'output.jpg'

    The response headers look like this — notice its outputting HTML, instead of JPEG type:

    < HTTP/2 404 
    < date: Sun, 12 Jul 2020 14:51:22 GMT
    < server: Apache
    < x-powered-by: PHP/7.3.19
    < expires: Wed, 11 Jan 1984 05:00:00 GMT
    < cache-control: no-cache, must-revalidate, max-age=0
    < link: <https://pannonbajor.hu/wp-json/>; rel="https://api.w.org/"
    < vary: Accept-Encoding,User-Agent
    < referrer-policy: same-origin
    < content-type: text/html; charset=UTF-8

    Let me know if those details help.

    Regards

    Forum: Plugins
    In reply to: [Multiple Domain] no-index
    Plugin Contributor Gustavo Straube

    (@gustavostraube)

    Hello,

    You can write some logic to your theme’s function.php file in order to add a meta tag to the pages when accessing the additional domain.

    Something like the following, where the domain.tld is the domain to which you want to add the meta tag.

    function custom_hook_metatag() {
        if (MULTIPLE_DOMAIN_DOMAIN === 'domain.tld') {
            echo '<meta name="robots" content="noindex" />';
        }
    }
    add_action('wp_head', 'custom_hook_metatag');

    I hope that helps.

    Plugin Contributor Gustavo Straube

    (@gustavostraube)

    Hello,

    This error is not related to WordPress. Your request is being handled by other file/directory in your webserver. You may contact your hosting provider to fix that.

    Regards

    Plugin Contributor Gustavo Straube

    (@gustavostraube)

    Hello,

    If some of your domains are working and others don’t, it seems the issue is on the DNS setup. Are you getting any error when accessing through the new domains? Also, have you added all the new domains to the plugin configuration?

    Just to be clear, the plugin doesn’t have any restrictions on the types or number of TLDs you can use.

    Regards!

    Plugin Contributor Gustavo Straube

    (@gustavostraube)

    Hello,

    Given the error message you mentioned, it seems the subdomain was not properly configured in your hosting/server. Could you double-check that?

    Regards,

    Gustavo

    Plugin Contributor Gustavo Straube

    (@gustavostraube)

    Hello!

    You can try removing some filters used by the plugin. This way:

    
    $multipleDomain = MultipleDomain::instance();
    
    remove_filter('content_url', [ $multipleDomain, 'fixUrl' ]);
    remove_filter('wp_get_attachment_url', [ $multipleDomain, 'fixUrl' ]);
    remove_filter('upload_dir', [ $multipleDomain, 'fixUploadDir' ]);
    remove_filter('the_content', [ $multipleDomain, 'fixContentUrls' ], 20);
    

    You may add/remove lines to the snippet above according to your needs. The hookFilters function contains all the filters used by the plugin: https://github.com/straube/multiple-domain/blob/master/multiple-domain/MultipleDomain.php#L240

    Regards

    Plugin Contributor Gustavo Straube

    (@gustavostraube)

    Hi Glenn,

    I see other links are correctly updated. It may be a conflict with Polylang. Multiple Domain is not guaranteed to work with other plugins that change links, such as Polylang, WPML, etc.

    I’m short on time lately, I won’t be able a look into this issue soon. However, I’m leaving the topic open, so perhaps some other user can give you a hint on how to fix it.

    Regards,

    Gustavo

    Plugin Contributor Gustavo Straube

    (@gustavostraube)

    Hello,

    Serialized data shouldn’t be damaged by the plugin. It acts during the page rendering, not while storing data or replacing things in your database.

    Your site is supposed to work fine after installing the plugin and adding the domain. Just make sure the new “.com” domain points to the same server as the “.com.ar” and the server is also prepared to receive connections through the new domain. With cPanel and most hosts this is called an alias domain. If you need help on setting that up, your hosting provider is likely to guide you.

    Regards

    Plugin Contributor Gustavo Straube

    (@gustavostraube)

    Hello,

    Multiple Domain plugin doesn’t duplicate your WordPress installation. It seems you actually have installed 2 WordPress’s instances on your server, perhaps when creating the new domain, I’m not sure.

    Well, one way to fix that would be deleting the second WordPress and making sure its domain point to the main one. But I’d recommend you to back up everything first, to be able to rollback in case anything goes sideways.

    Regards

    Plugin Contributor Gustavo Straube

    (@gustavostraube)

    Hello,

    Have you tried to add both domains, with and without www, to your settings? That should enable the URL rewriting.

    Let me know if that works for you.

    Regards

    Plugin Contributor Gustavo Straube

    (@gustavostraube)

    Hey @paul8998

    I just signed up for their Go Global program. I’ll keep you posted.

    Plugin Contributor Gustavo Straube

    (@gustavostraube)

    Hello,

    Unfortunately, that’s a known issue. There is a proposed solution using custom filters and changing the domain in a way similar to what you’re already doing. Please refer to this topic on how to achieve that: https://www.ads-software.com/support/topic/linking-to-original-domain/

Viewing 15 replies - 16 through 30 (of 201 total)