• Resolved lisa42

    (@lisa42)


    I am trying to install wordpress on 2 domains using only 1 database. I installed on domain1 and it’s working great. For domain2 I changed the wp-config.php file to say:

    $table_prefix = ‘wp2_’

    The second domain is working and writing to the database, but when I type in mydomain.com it pulls up a list of my files. If I type in mydomain.com/index.php then I get the correct blog layout. Same with the admin login (I had to type in mydomain.com/wp-admin/index.php) It doesn’t work unless I type the “index.php” in.

    Has anybody experienced this problem before and know how to fix it? I searched the forum but couldn’t find this particular issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sounds like your host isn’t set up to look for PHP extensions by default. You can fix it (if you are allowed to edit an .htaccess file) by placing:

    Directory Index index.php index.html index.htm

    in your .htaccess file and uploading it to the root of your server. Then it’ll look for (and serve up) your index.php file.

    That second domain where you have to type in index.php my not be handling Directory Indexes properly–either fix the setting for your webserver or try this in an .htaccess file:
    DirectoryIndex index.html index.htm index.php

    doodlebee strikes first 😉 Time to go watch Krya ‘The Closer’

    Thread Starter lisa42

    (@lisa42)

    Thanks for the advice.

    I tried it and now it’s working perfectly!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘one database for multiple domains’ is closed to new replies.