PDA

View Full Version : subdomains question



bit
02-13-2008, 10:20 AM
Hallo,

I have 4 OR installs in 4 different folders.

www.mydomain.com/my-first-install/
www.mydomain.com/my-second-install/
www.mydomain.com/my-third-install/
www.mydomain.com/my-fourth-install/

As full path for each OR install is too large to remember, I have made 4 subdomains and pointed them to each folder (I use godaddy for domain management).

So I have:

sub1.mydomain.com
sub2.mydomain.com
sub3.mydomain.com
sub4.mydomain.com

Almost everything works good when I open site with subdomain, except listing detail view. When I hit link to listing, it backs me to the first page.

SEO is ON. Can this be the problem? Do I need to update URL path for every installation, changing www.mydomain.com/my-first-install/ to sub1.mydomain.com .

Pages are OK, searchresults page are OK, only listing detail pages dont open.

Anyone with any idea?

Thank you.

udunsay
02-21-2008, 10:53 AM
Basically I have this same problem except my seach results drop me back to the main page.

bit
02-21-2008, 11:50 AM
my problem was in htaccess file.

Before I made subdomains, I had

RewriteBase /mysubdomainfolder

Now, after setting subdomain, you need to have:

RewriteBase /

Hope this helps

udunsay
02-21-2008, 12:44 PM
Thanks, but unfortunately in my case it didn't help. But I am configured differently than you. I have my sub off /var/www/mysub.

I originally had it as you but I moved it as a result of some advice I got somewhere. I think I will try moving it back again.

Thanks again

bit
02-21-2008, 12:49 PM
Have you test everything without SEO (SEO off), to be sure that in your case, it is .htaccess file issue?

udunsay
02-21-2008, 01:28 PM
I have not turned SEO on yet. I really never believed it was an htaccess problem as everything else seems to work ok for the most part.

I've traced it back so far to search results hitting the index with what looks like all the correct parameters. I've put some debug information in that verifies that part. However, it never makes it to the core.inc to dispatch to the search.inc.