redirect?

Having trouble installing serendipity?
Post Reply
Hindu
Regular
Posts: 11
Joined: Fri Feb 24, 2006 2:27 am

redirect?

Post by Hindu »

I have moved my serendipity installation to a subdir off my root - in the interest of organization. Like www.mysite.com/blog/. Simple enough. What I'd like is for a user to be able to simply go to www.mysite.com and have serendipity pick it up. I'm working around it by using a stub index.php with a <meta> redirect statement. Works, but you still see www.mysite.com/blog/ in the URL window.

Is there a more elegant approach to doing this so the user never even knows they are in the /blog/ subdir? I've messed with the "Paths" part of the configuration but haven't been able to make it work. Thought about moving the serendipity index.php file to my root dir and then find a way to alter a path variable, if one exists, that points to the subdir.

Eric
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: redirect?

Post by garvinhicking »

This is not possible because of the nature of HTTP.

You can only build an index in the root of your page that uses a frameset or an iframe to display your blog. Then the /blog/ directory would not be visible, but then - you can't bookmark any page no more without then seeing /blog/ in the URL.

The second option is of course to just install serendipity into the root. Serendipity does not need to be installed into a subdirectory. You can move your installation as indicated in the fAQ on www.s9y.org.

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