pointing my domain to the correct database (4 posts)

  1. jasonlykins
    Posted 4 years ago #

    I am using one and one for hosting of my sites. I have a couple of sites under the same account just using different databases. The problem is, when I installed it I pointed the domain to the database however I can't just navigate to the main domain. I have to navigate to http://www.kapturephotographcincy.net/kapture/wordpress Is there any way to be able to just go to the main domain? Thanks for helping a new guy...

  2. stvwlf
    Posted 4 years ago #

    If you have more than one WordPress installation in the same domain, you can't access all of them from going to the main domain, because some of them will be installed in folders under the main domain.

    Unless I don't understand what you are asking for.

  3. jasonlykins
    Posted 4 years ago #

    Under the same account I have a few different domains. I have http://www.jasonlykinsphotography.com

    For the second domain I put wordpress under /kapture/wordpress
    and for the third domain I put it /jason/wordpress

    I did this because for the first domain I put wordpress under the root directory /

    For the main domain I can just type in the the url but for the second two I have to type in /kapture(or jason)/wordpress

    Am I able to make it so that I can type in just the url or do I need to have a separate account with one and one for each url?

  4. MichaelH
    Posted 4 years ago #

    You would need to install the WordPress files in the 'webroot' of each of those domains. By webroot, I mean /jason or /kapture. So your /jason folder would have the wp-admin, wp-content, wp-includes folder for the WordPress install for that site.

    Just as a note, you don't really point a domain to a database, you specify what database gets used in the wp-config.php file for each WordPress install. In theory, all your WordPress installs could use the same database as long as you set a different $TABLE_PREFIX in each of your wp-config.php files.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.