WordPress.org

Ready to get started?Download WordPress

Forums

Subdomain issue.... please help (9 posts)

  1. Anonymous
    Unregistered
    Posted 6 years ago #

    Hi
    I have a blog at http://www.crankup.net

    I installed another WP at wwwroot/cg (with diff table prefix etc)

    When I try to open http://www.cg.crankup.net it gets redirected to http://www.crankup.net

    but http://www.crankup.net/cg takes me to the new blog which is correct.
    I am sure similar question was posted earlier but none of it helped me...

    note: all other subdomains (without wp) works fine
    Any idea?

  2. MichaelH
    Member
    Posted 6 years ago #

    I'd make sure your sub-domain is pointing to the 'web-root' folder you are using (i.e. cg).

    Put the script from Finding_Server_Info in that sub-domains' web-root folder and see what happens when you browse to http://www.cg.crankup.net/testphp.php

  3. Anonymous
    Unregistered
    Posted 6 years ago #

    Thank u for your reply. here is what I get http://codegeeks.crankup.net/test.php

    codegeeks is the subdomain (folder)

  4. MichaelH
    Member
    Posted 6 years ago #

    So what is the difference between the wp-config.php file that resides in the codegeeks folder (wwwroot/codegeeks/wp-config.php) and the wp-config.php file that resides in the web-root folder for your 'main domain (wwwroot/wp-config.php)?

    Also make sure you have backups of your database(s) before proceeding!

    Might also make sure an .htaccess file isn't causing a problem.

  5. Anonymous
    Unregistered
    Posted 6 years ago #

    table prefix is different... for both ..

    I am not sure whether .htaccess is issue here..

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

    # END WordPress

    is what is have now!

  6. macsoft3
    Member
    Posted 6 years ago #

    I'm sure MichaelH is more familiar with this stuff than I am. But I suppose that's usually what happens if you pull the database from one WP installation and use it with another WP installation.

  7. Dan.F
    Member
    Posted 6 years ago #

    Are you sure you've set up a sub-domain and not just a folder within your current domain? A sub domain has to be registered with your hosting providers domain name servers, which can take some time to propagate.

  8. Anonymous
    Unregistered
    Posted 6 years ago #

    yes.. all other sub domains work execpt the one with the WP installation...

  9. jamesisin
    Member
    Posted 6 years ago #

    If I visit http://www.cg.crankup.net I am not redirected.

    Is this resolved?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags