Page 1 of 1

redirect?

Posted: Wed Mar 15, 2006 11:11 pm
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

Re: redirect?

Posted: Thu Mar 16, 2006 12:25 pm
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