• Resolved rei15

    (@rei15)


    Hi,

    This’s what i wanna do, having static HTML with wordpress files.

    /index.html ---> showing static index.html as my top page for my site
    /about.html ---> static.html
    /feature.html ---> static.html
    /wp/ ----> the subdirectory for wordpress, where the wordpress is installed.

    I would like my HTML to execute PHP, so this’s my .htaccess under /

    AddType application/x-httpd-php .htm .html

    And this’s the .htaccess under wp/

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

    I cant see anything wrong here, but when i access to my site,
    http://localhost/
    it keeps giving me 404 error, and redirecting me to:
    http://localhost/wp-admin/install.php

    There’s no wp-admin/ under /
    Where is the mistake here?

    If i delete the .htaccess under /, the page shows up well.

    Thank you.

Viewing 1 replies (of 1 total)
  • Thread Starter rei15

    (@rei15)

    Sorry… i was in fact copying my environment to another new one and i forgot to dump my wp data into the new server.
    After doing that it’s solved.
    (I still dont understand why it redirects if my database is empty)

    Sorry..

Viewing 1 replies (of 1 total)
  • The topic ‘My index.html wont show up when i have wordpress installed in sub directory’ is closed to new replies.