• Resolved championc

    (@championc)


    Hi all

    My hosting provider has told me the following. How do I find where this is setup ?

    “Yes you are right it’s redirect.

    ~]$ curl -I https://syngestreetppu.com/index.php HTTP/1.1 301 Moved Permanently
    Content-Length: 153
    Content-Type: text/html; charset=UTF-8
    Location: https://www.syngestreetppu.com/

    We have checked panel redirects and web.config. There are not any configured redirects for your domain. So it’s internal WP redirect to www. ”

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator James Huff

    (@macmanx)

    I’m assuming you don’t want it to be https://syngestreetppu.com/ but it’s redirecting to https://www.syngestreetppu.com/ and you want to stop that redirect?

    If so, visit Settings -> General in your blog’s Dashboard, and make sure you have both WordPress and Site Addresses saved without the www.

    Thread Starter championc

    (@championc)

    Thanks man. It’s been wrecking my head. My problem was that I wanted a different startup screen for the domain outside of WordPress – a website welcome page

    Moderator James Huff

    (@macmanx)

    Ok, then you’d be better off moving the blog to a different directory, like syngestreetppu.com/blog/

    To do that, follow this guide: https://codex.www.ads-software.com/Moving_WordPress#Moving_Directories_On_Your_Existing_Server

    Thread Starter championc

    (@championc)

    Am I correct to say that WordPress itself has changed and that it previously worked in the root of the domain but won’t any longer – because it has worked OK for a few years and then stopped working around when I moved my site to a new server.

    In other words, can I get this to do what I want to do without moving my WP installation into a sub-directory ? It just keeps looping back now to https://syngestreetppu.com so I’m back to where I started.

    Moderator James Huff

    (@macmanx)

    No, WordPress hasn’t changed anything like that.

    What exactly is preventing you from keeping WordPress in the main directory? You said “I wanted a different startup screen for the domain outside of WordPress – a website welcome page” so I assume you want a different type of site in the root directory, then WordPress in a directory below?

    Thread Starter championc

    (@championc)

    If you go to the website now, you get a logon screen, which is on a page default.asp which is the default startup page for the domain. There’s no validation to anything here – it records details once you logon, please feel free to try it. Once you go through the logon screen, it SHOULD be loading index.php.

    However, when it tries to load index.php, it seems that wordpress redirects the site to syngestreetppu.com, so therefore reloads the default.asp screen again, and again, and again.

    Moderator James Huff

    (@macmanx)

    However, when it tries to load index.php, it seems that wordpress redirects the site to syngestreetppu.com

    That’s how WordPress has always operated, this has never changed.

    WordPress respects the server’s default index file, and most servers set the default index file alphabetically.

    WordPress’s index is index.php, your current index is default.asp.

    default.asp is loading instead of index.php because your server is loading index files alphabetically.

    To avoid this, you’ll have to keep WordPress in its own directory, like /blog/ by following this guide: https://codex.www.ads-software.com/Moving_WordPress#Moving_Directories_On_Your_Existing_Server

    Note: While it is true that WordPress cannot share a directory with another active index file, it is entirely possible that you or someone managing the server created an incredibly complex work-around for that, but I wouldn’t have any idea as to what that was, so I am merely sharing what you should do based on over 11 years of working with WordPress.

    Thread Starter championc

    (@championc)

    Finally, got it all sorted – thanks. I’ve no idea therefore how it’s managed to work the way it did for the past number of years. I’m not aware of my hosting crowd doing anything fancy with re-directing

    Moderator James Huff

    (@macmanx)

    You’re welcome!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘URL Redirect’ is closed to new replies.