Support » Installing WordPress » Configuring .htmaccess file to run different WordPress Databases

  • Afternoon chap/chapess’

    I have a main wordpress website which is all working fine.

    I’m looking at setting up 2 further development websites for my partners businesses on the same hosting platform (you’ve guessed it, I’m not expert) so that I can create these and test them without the need to purchase any further hosting. Having spoken to my ISP they advised that I created a directory structure and installed individual copies of wordpress in each. for example

    However, when I go to these domains to log into the databases, they either come up with a 404 on my main website, or I can get to the page, but have just text, not the lovely wordpress layout. Having spoken to my ISP they have advised that I need to edit the .htmaccess file to include those domains…..

    This is what it says currently:-

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^$ [NC,OR]
    RewriteCond %{HTTP_HOST} ^$ [NC]
    RewriteCond %{REQUEST_URI} !^/wordpress/
    RewriteRule ^(.*)$ /wordpress/ [L]

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

    So my first question is…. do you agree with what they have advised me to do, or is there another non completely technical way of doing it?

    if so, what do I need to edit in the .htmaccess file?

    All help greatly appreciated – thanking you kindly in advance :0)

  • The topic ‘Configuring .htmaccess file to run different WordPress Databases’ is closed to new replies.