• Resolved hvattumnet

    (@hvattumnet)


    Ok, this one might be a bit tricky. I’ve got one blog running at hvattum.net – but the folder is /wp since hvattum.net/index.htm – will take you to an old blog (/index.php will take you to the WP blog that is hosted in the /wp folder) I’ve changed the .htaccess file to make it point to the index.php file by default – and this has been working fine.

    So what is the problem? Well, I’ve added another blog (using a different database) in hvattum.net/blog.

    The result is that everyting is chaos. Everytime a page is not found – it re-routes you to the hvattum.net/wp blog.

    Can this be fixed with the .htaccess file?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    What are the contents of the various .htaccess files that you have? Since you have two blogs, you should have at least two .htaccess files. Also describe the directory structure in more detail.

    Thread Starter hvattumnet

    (@hvattumnet)

    File structure:

    hvattum.net is the root.

    hvattum.net/wp – here is the WP installation that the index.php under the root folder points to (so the /wp folder content “should” be under the root – but since I used to run a different blog under the, and I didn’t want to delete it – I installed WP under the /wp folder)

    hvattum.net/blog – here is my “new” wp installation. It should be accessible from that url (and blog.hvattum.net)

    Ok, my .htaccess under the root – not sure what to do with it under the /blog folder:
    DirectoryIndex index.php index.html
    ErrorDocument 403 /v-web/errdocs/403.html
    ErrorDocument 401 /v-web/errdocs/401.html
    ErrorDocument 500 /v-web/errdocs/500.html
    ErrorDocument 400 /v-web/errdocs/400.html
    ErrorDocument 404 /v-web/errdocs/404.html
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /index.php/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php/index.php [L]
    </IfModule>

    Thread Starter hvattumnet

    (@hvattumnet)

    when I try to access an entry in the “new” blog (hvattum.net/blog) I get this msg:

    Error 404 – Not Found

    Search bar and other tools go here! If you’re reading this, it needs to be implemented, remind me!

    Thread Starter hvattumnet

    (@hvattumnet)

    making the .htaccess file writable and letting WP change it – solved this issue ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘two blogs – two db’s – chaos – htaccess?’ is closed to new replies.