• Hi,

    I would like to redo my website, so I installed wordpress in a subfolder called newwp.

    But when I try to browse xxx.com/newwp or xxx.com/newwp/wp-admin I get a 404 page not found error.

    The .htaccess file is:

    RewriteEngine On

    RewriteBase /newwp/

    RewriteRule ^index.php$ – [L]

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /newwp/index.php [L]

    Which I think is correct… What could be the problem?

    Thanks.

Viewing 1 replies (of 1 total)
  • Moderator threadi

    (@threadi)

    Do you have a wordpress installation in the folder above? Then probably their htaccess file takes effect and forwards the request to their installation.

    You could solve this by adding the following to the .htaccess file of your new installation

    RewriteEngine Off

    in one line before

    RewriteEngine On

    in the .htaccess file. This will cancel previous mod_rewrite rules and the new ones will apply.

    Alternatively, you could also install in a new directory parallel to the existing project.

Viewing 1 replies (of 1 total)

The topic ‘Error 404 installation in a subdirectory’ is closed to new replies.