WordPress.org

Ready to get started?Download WordPress

Forums

Configuring .htmaccess file to run different WordPress Databases (1 post)

  1. Bleuy
    Member
    Posted 1 year ago #

    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

    http://mydomain.co.uk/development/ExampleWeb1
    http://mydomain.co.uk/development/ExampleWeb2

    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} ^MYDOMAIN.co.uk$ [NC,OR]
    RewriteCond %{HTTP_HOST} ^www.MYDOMAIN.co.uk$ [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]
    </IfModule>
    # 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)

Topic Closed

This topic has been closed to new replies.

About this Topic