• Hi,
    the plugin is adding a trailing slash to the url given in the meta field (in the rel=alternate tag) even though my website does not use a trailing slash at the end of the url.

    This can potentially create duplicate content issues as Google still sees such urls as distinct. I’ve had to take it off because of that.

    Anyway to stop it from adding a trailing slash?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter elos42

    (@elos42)

    also, is there any way to convert the canonical link/domain/url to a specific locality (say en-US) and set up an ‘x-default’ on a subdomain?

    Currently, the plugin will add ‘x-default’ on the primary domain and there’s no way to stop it from doing that.

    For other reasons, I am not able to change my primary site address (siteurl), which is at the apex domain. Otherwise I would have done that.

    • This reply was modified 4 years, 4 months ago by elos42.
    Plugin Contributor Gustavo Straube

    (@gustavostraube)

    Hello,

    The way alternate links are currently built always adds a trailing slash to it. This follows the default WordPress settings. That doesn’t mean that logic can’t be changed, maybe as an option to keep backward compatibility for other users.

    About the primary domain, the plugin sets the domain where WordPress was originally installed as the primary domain. There is possible to add a feature that allows users to flag another domain as the primary one.

    However, both changes would take a week or two to be released, since I’m short of free time lately. If you have coding skills, feel free to contribute with the project: https://github.com/straube/multiple-domain. Otherwise, I keep you posted.

    In any way, I added the requests to the project’s issue tracker:

    https://github.com/straube/multiple-domain/issues/78
    https://github.com/straube/multiple-domain/issues/77

    Thread Starter elos42

    (@elos42)

    Thanks Gustavo. Appreciate it much.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin is adding trailing slash to url’ is closed to new replies.