• Hi, I’m trying to upload a local wordpress site to a subdirectory. I’m already running a static site on the root of this server. I uploaded everything to the subdirectory, edited the config file with the new database I created, imported my saved local database tables, and changed the site address and site home in phpMyAdmin.

    But now the subdirectory in question throws a 404 error. I can’t access the site or the backend. I’m not sure what the problem is, but it might be the .htaccess, which is in the root at the moment and reads:

    # BEGIN WordPress

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

    # END WordPress

    …where /devaleras/ is the subdirectory in question.

    Any idea what might be the problem here? I’d appreciate any help at all on this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Klimseven

    (@klimseven)

    I’ve already followed all of those instructions, and it’s throwing a 404 error. That’s my problem.

    Thread Starter Klimseven

    (@klimseven)

    Nobody?

    Thread Starter Klimseven

    (@klimseven)

    P.S. this is how my .htaccess file looks right now, it’s in the root folder:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /devaleras/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /devaleras/index.php [L]
    </IfModule>
    # END WordPress

    …where /devaleras/ is the path to my wordpress subdirectory.

    Hi,

    Did you check file permissions for sub directory folder ??

    You can do it from your computer – filezilla, or from cpanel.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Installing WP in subdirectory – 404 error’ is closed to new replies.