404 error on home page
-
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/wordpressPermalinks 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]
- The topic ‘404 error on home page’ is closed to new replies.