Domains and install folder, help!

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
TimothyP

Domains and install folder, help!

Post by TimothyP »

I've got an install of Serendipity in my webmania webspace. Its in the default folder /serendipity/. I configured it originally to be pointed to at http://www.fracsoft.com/serendipity/ by setting relative base url to /serendipity/ and putting the full url as the base url. It worked fine.

I've since added a subdomain, deepbluesea.fracsoft.com, and set it to point to www.fracsoft.com/serendipity/. When I go to deepbluesea, I get nothing. However, if I type http://deepbluesea.fracsoft.com/index.php it starts to load the main page, but fails, or misses images or template styles. I've tried reconfiguring serendipity but it doesn't seem to work. Any ideas of what my settings should be or what I'm doing wrong?

Thanks in advance,
Tim
Dan

Post by Dan »

Check your .htaccess file.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Another thing yuo might want to enabled is 'autodetect baseurl' within serendipity configuration.

But to me it looks like the site is working now?
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
TimothyP
Regular
Posts: 13
Joined: Fri Apr 01, 2005 12:29 pm
Location: UK
Contact:

Post by TimothyP »

Dan wrote:Check your .htaccess file.
I unfortunately don't know what to do with it...? Seems pretty standard.
Tim Putnam
Between the devil and the deep blue sea
http://deepbluesea.fracsoft.com/
TimothyP
Regular
Posts: 13
Joined: Fri Apr 01, 2005 12:29 pm
Location: UK
Contact:

Post by TimothyP »

garvinhicking wrote:Another thing yuo might want to enabled is 'autodetect baseurl' within serendipity configuration.

But to me it looks like the site is working now?
Unfortunately still not right. Its like it can't load the images and things. This link demonstrates the first problem:

http://deepbluesea.fracsoft.com/

(doesn't locate an index.php)

and
http://deepbluesea.fracsoft.com/index.php fails to load the page properly (XML feed images are missing)
[/url]
Tim Putnam
Between the devil and the deep blue sea
http://deepbluesea.fracsoft.com/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Timothy,

I cannot confirm. Everything works properly here. All images are there, on both URLs.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
TimothyP
Regular
Posts: 13
Joined: Fri Apr 01, 2005 12:29 pm
Location: UK
Contact:

Post by TimothyP »

My web host has just this second sorted it out. Only problem now archives and admin broken but I'll get there one day :)

One other question, how can I simultaneously configure serendipity with a relative url of serendipy/ for one domain and a url of / for another?

garvinhicking wrote:Timothy,

I cannot confirm. Everything works properly here. All images are there, on both URLs.

Regards,
Garvin
Tim Putnam
Between the devil and the deep blue sea
http://deepbluesea.fracsoft.com/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi Timothy!

Okay, great. Maybe your admin deactivated AllowOverride in his vhost config and thus broke your links.
One other question, how can I simultaneously configure serendipity with a relative url of serendipy/ for one domain and a url of / for another?
This is not possible, out of the box. You might be able to patch the baseURL autodetection mode feature to not only pay regard to HTTP_HOST but also REQUEST_URI. This snippet can be found somewhere in serendipity_config.inc.php - I must admit though that what you want to do is a not-so-nice thing for any webbased application :-)

Regards,
Garvin.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply