How can I redirect my blog?

Having trouble installing serendipity?
Post Reply
ashmoore
Regular
Posts: 7
Joined: Thu Jan 10, 2008 7:04 pm

How can I redirect my blog?

Post by ashmoore »

I am trying to figure out how to leave my current serendipity installation where it is, but make it appear at the root.
What I mean is, instead of www.mydomain.com/serendipity have it work as www.mydomain.com/

I now this is possible, just don't know how to do it :roll:
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: How can I redirect my blog?

Post by garvinhicking »

Hi!

You can create a index.php file in your root with this content:

Code: Select all

<?php
header('Location: http://yourdomain/serendipity/');
this will then properly redirect to your blog.

Bestregards,
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/
ashmoore
Regular
Posts: 7
Joined: Thu Jan 10, 2008 7:04 pm

Post by ashmoore »

Thanks Garvin,
That does indeed redirect.....
but I was hoping to get rid of the /serendipity/ from the url.

One of my friends showed me this for Wordpress which does exactly what I want.
http://codex.wordpress.org/Giving_WordP ... _Directory
The link does not give too much real information though (normal for wordpress) :shock:
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

This is possible for s9y, but then you need to physically move serendipity from /serendipity/ to /. This is outlined in the FAQ on www.s9y.org, but it's also a bit of work. Redirecting might be the painless option.

Serendipity uses different code includes like Wordpress, so it does not suffice to copy over index.php to the root and let it forward.

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/
ashmoore
Regular
Posts: 7
Joined: Thu Jan 10, 2008 7:04 pm

Post by ashmoore »

In that case I will leave it right were it is and be happy :wink:
Post Reply