• Hi,

    I hope this is the right place where to ask.

    [ Moved to the Fixing WordPress sub-forum. ]

    I had a problem with my blog so I asked the hosting provider Siteground to run some test.

    Basically, if I enter any word after the domain name, the url is redirect to the article that is starting with the same letters. Instead of giving a 404.

    Example:
    domain.com/pub -> domain.com/public-places-blabla
    domain.com/inst -> domain.com/instagram-blabla

    Example 404:
    If there is no articles starting with the same letters, finally wordpress give a 404

    domain.com/ggg
    404

    We have deactivated all plugins, and we have changed theme with a basic wordpress theme and it happens the same. So the engineer went further.

    This is the answer from the Siteground engineer:

    I have carefully investigated the case and the redirects seem to be core function of WordPress. To verify that, I have installed a new WordPress on my account and created a post named testing-wp-redirects. When I accessed domain.com/testing, the WordPress automatically redirected me to domain.com/testing-wp-redirect.

    The redirect seem to be caused by the wp_redirect function of WordPress, however I was not able to find how to prevent them. We are experienced in dealing with various hosting-related WordPress issues, but sometimes there are issues that require deeper investigation, which includes dedicating time and effort for debugging a problem, and this is usually best done by a professional developer.

    I think this is a problem right? WordPress shouldn’t redirect by himself like this. Am I wrong?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • This is actually a good feature to have. As long as people remember the first word of your post, they can find the article easily. To disable this, you’ll need to edit functions.php file, I believe.

    Thread Starter Davide Roccato

    (@davidroccato)

    1) So, this is a feature that every wordpress site has? Since when?

    Well, the fact is that you could have different blog posts starting with the same letters or word. And readers could be mislead. Imaging in a blog with thousands of articles.

    Or they could think it’s a tag, without adding the /tag/ slash, and instead of going to the tag page they go to a single article.

    2) Is it really a good thing to have?

    I’m really trying to understand this.

    Thanks,
    Davide

    I don’t know since when, but this is a default feature out of the box. Umm, I still think this is a good feature, cos the worst experience for visitors is definitely 404 error. When faced with 404 error, most people, if not all, simply leave your website.

    Thread Starter Davide Roccato

    (@davidroccato)

    Well, it depends on how your 404 page is optimized. Anyways, thanks for sharing your thoughts.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem with Redirect created by WordPress’ is closed to new replies.