• I have several websites, all set up in the same way:
    Home page is in the root, e.g. rotorua.waibopscd.org.nz
    WordPress itself is in a subdirectory, e.g. rotorua.waibopscd.org.nz/wordpress

    Permalinks are set to postname

    Under normal circumstances everything works fine.

    However, if I enter rotorua.waibopscd.org.nz/wordpress, the website is displayed with a 404 error.
    This only happens with the home page. rotorua.waibopscd.org.nz/wordpress/links works OK.

    The problem only occurs with one particular website, even though the settings appear to be identical (.htaccess in root and subdirectory etc).

    The reason that this is a problem is that my host (Openhost) automatically applies updates and fails to do so if it cannot access the wordpress subdirectory.

    .htaccess is in the root:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    and in the wordpress subdirectory

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wordpress/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wordpress/index.php [L]
    </IfModule>
    # END WordPress

    Andy

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anonymous User 16775186

    (@anonymized-16775186)

    Same with me. I think when the permalinks change it doesn’t change everything.

    @andynz all pages have the same error

    If you enter https://rotorua.waibopscd.org.nz/wordpress/links/ its redirect to https://rotorua.waibopscd.org.nz/links/

    May i know why do you need wordpress subfolder?

    Thanks

    Thread Starter andynz

    (@andynz)

    Rajan, thanks for taking the trouble to reply.

    However, https://rotorua.waibopscd.org.nz/wordpress/links/ works exactly as it should by redirecting to the root. No 404 error as occurs with the home page.

    Jadenjoner may have a clue to the answer. I probably set the website up originally with default permalinks and changed it to postname later. This might have confused wordpress.

    As for why I install WordPress in its own directory, I think this a fairly common strategy.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘404 error on home page’ is closed to new replies.