Forums

404 Only on Homepage at Certain URL When Using Permalinks With Custom Theme (2 posts)

  1. LouisW
    Member
    Posted 1 year ago #

    Hello experts,

    Does anyone have an inkling as to what might be causing this behavior:

      The domain name points to x:\user on the server.
      Wordpress is installed in x:\user\blog
      Turn on permalinks
      Change theme
      Suddenly thesite.com/blog redirects to thesite.com/user/blog/ and WordPress throws a custom 404 error. However, thesite.com/blog/ works fine. I find it strange that thesite.com/user/blog and thesite.com/user/blog/ do not work.
      Turning off permalinks allows the theme to work under all of the conditions above (thesite.com/blog, thesite.com/blog/, the site.com/user/blog and thesite.com/user/blog/).
      Or, changing back to the default theme allows permalinks with those URLs above.

    I noticed that the three themes I've tried out don't have the trailing slash. So when I click on the header, it goes to thesite.com/blog. The default theme doesn't behave this way, its default site variable always includes the trailing slash. This is relevant in the outcome of one of the cases noted above.

    Not sure what is going on here. But the user wants permalinks, because this is a migration from BlogEngine.net and he doesn't want any link-rot.

    Thanks for any advice,
    Louis

    BTW, this only happens on the homepage. Everything else works fine in all configurations.

  2. LouisW
    Member
    Posted 1 year ago #

    Oops, I made a mistake, thesite.com/blog and thesite.com/user/blog return 404s with the default theme as well.

Topic Closed

This topic has been closed to new replies.

About this Topic