How do I redirect my home page from my install directory....

Having trouble installing serendipity?
Post Reply
ckeck
Regular
Posts: 18
Joined: Sun Jan 02, 2005 8:00 am
Location: Texas
Contact:

How do I redirect my home page from my install directory....

Post by ckeck »

Sorry if this has been posted before, I was unable to find anything about this:

I installed Serendipity to www.mydomain.com/s9y and everything is working good, but I want my blog to come up under:

www.mydomain.com

Thanks for the help.
wesley
Regular
Posts: 197
Joined: Sun Jul 10, 2005 11:15 am
Contact:

Post by wesley »

I just created an .htaccess file on the root so one would get redirected.
I make s9y plugins, too.
My s9y blog depends on them. :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: How do I redirect my home page from my install directory

Post by garvinhicking »

# 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/
Dinges
Regular
Posts: 14
Joined: Fri Aug 12, 2005 3:33 pm

Post by Dinges »

I used

Code: Select all

RewriteEngine On
RewriteRule ^$ /serendipity/
RewriteRule ^(.*) /serendipity/$1 [L]
To fool the browser that it has to look there, needs mod_rewrite and mod_rewrite support enabled in serendipity, put serendipity browser path to / and change upload path apropriatly. You do not need to change template path. And offcourse change the url to your weblog.
ckeck
Regular
Posts: 18
Joined: Sun Jan 02, 2005 8:00 am
Location: Texas
Contact:

Post by ckeck »

Got it, thanks everyone!
Guest

Post by Guest »

And what if I use IIS6? Do the standard options for mod_rewrite work on IIS?
Dinges
Regular
Posts: 14
Joined: Fri Aug 12, 2005 3:33 pm

Post by Dinges »

you will need the mod_rewrite mod for iis installed.
gnubit
Regular
Posts: 17
Joined: Thu Aug 25, 2005 3:30 pm
Location: Verona (Italy)
Contact:

Post by gnubit »

Why don't set the correct directory for the domain?

Set www.mydomain.com to the directory you have installed s9y
Post Reply