Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter HaraldC

    (@haraldc)

    Yes, I’ve been using two SEO plugin as an experiment.

    Fortunately the duplication disappears when I turn one off.

    Thank you.

    Thread Starter HaraldC

    (@haraldc)

    I tried, doesn’t work for me on 4.8.3

    Thread Starter HaraldC

    (@haraldc)

    Hi,
    Thanks, I found the problem
    It is the ‘WP Editor’ plugin.
    The bug may manifest only on a localhost site.

    Cheers.

    Thread Starter HaraldC

    (@haraldc)

    OK, I think I found the culprit.

    Here’s the full story:

    WordPress have a ‘redirect_canonical’ function. A plugin can hook into it with an ‘add-filter’

    The global redirection was done by Yoast free SEO plugin by adding a filter (found by doing some grepping around).

    I don’t know how the redirection got activated and I’ve not seen a deactivation option.

    Disabling the plugin will NOT remove the redirect.

    So what I did was to export settings, uninstall Yoast then reinstall and import settings.

    Seems to have fixed the problem.

    So I’m marking this as resolved.

    Thread Starter HaraldC

    (@haraldc)

    yes, searched from left to right, from right to left, from top to bottom, in reverse ?? … couldn’t find anything :((((

    Thread Starter HaraldC

    (@haraldc)

    Bummer! OK fixed. James, thanks for the mod_rewrite reminder

    mod_rewrite: was enabled in the main config but not in the VirtualHost
    *facepalm* ??

    <VirtualHost ...>
        ...
        <Directory>
            ...
            AllowOverride All       <- needed for .htaccess
                                       not sure 'All' is best (security ?)
            RewriteEngine On        <- this was it
            ...
        </Directory>
        ...
    </VirtualHost>

    Thanks ??

    Thread Starter HaraldC

    (@haraldc)

    Samuel and all — thanks again for your help.

    Permalinks: there is no such thing as ‘off’ but there is ‘plain’ so I guess this is what you refer to.

    If it doesn’t work under a couple of permalinks settings, it is pointless to try them all, I’m not willing to dance naked under full moon and sacrifice a rubber chicken just to to make it work ?? ?? ??

    I was expecting it to work under most circumstances, especially without any potentially interfering plugins and changed settings. Clearly that’s not the case and I am not into poking blindly in the dark.

    It’s not in ‘WordPress for Dummies, 7th ed’
    It’s not in ‘WordPress 4.4 Complete’ (Packt)
    It’s not in ‘Professional WordPress, 3rd ed’ (Wrox)
    The first thing that comes up in a Codex search is a 6 years old post
    I’ve searched on the web for almost a full day, nothing. Everybody is using a real robots.txt.

    So clearly something is going on: it’s not being used and/or it’s not working anymore, nobody’s paying attention to it … or something equivalent.

    I’m giving up.

    But again thank you all for your help, time, and effort, much appreciated ?? (even if it did not lead to a solution)

    All the best.
    Regards.

    Thread Starter HaraldC

    (@haraldc)

    James: It is installed _in_ the DocumentRoot but as a VirtualHost

    Samuel: I see that Pretty Permalinks is always on, my only choice is to select what format I want. I tried a couple, made no difference.

    The .htaccess is the default one coming with WordPress.

    This is a pristine WordPress 4.4 install.

    Many thanks to all that replied.

    Thread Starter HaraldC

    (@haraldc)

    Linux + Apache + VirtualHost on localhost

    It is installed under the same dir as defined by the DocumentRoot directive.

    WordPress 4.4 plain vanilla install, out of the box.

    Thanks,
    Cheers.

    Thread Starter HaraldC

    (@haraldc)

    Hello,

    Thanks for your reply.

    I understand that it’s not an actual file.

    When I say I cannot find it I mean “https://<mysite>/robots.txt&#8221; returns “Not Found”

    What I don’t understand is how is it generated e.g. is it some sort of web server rewrite rule ?

    I don’t mind writing my own robots.txt , no big deal, except e.g. the “Googla XML Sitemaps” plugin have an option to add sitemap URL to virtual robots, etc.

    Regards.

Viewing 11 replies - 1 through 11 (of 11 total)