Anonymous
Unregistered
Posted 1 year 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?
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
Anonymous
Unregistered
Posted 1 year ago #
Thank u for your reply. here is what I get http://codegeeks.crankup.net/test.php
codegeeks is the subdomain (folder)
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.
Anonymous
Unregistered
Posted 1 year 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!
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.
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.
Anonymous
Unregistered
Posted 1 year ago #
yes.. all other sub domains work execpt the one with the WP installation...
jamesisin
Member
Posted 1 year ago #
If I visit http://www.cg.crankup.net I am not redirected.
Is this resolved?