Page 1 of 1

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

Posted: Mon Aug 15, 2005 11:09 am
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.

Posted: Mon Aug 15, 2005 12:33 pm
by wesley
I just created an .htaccess file on the root so one would get redirected.

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

Posted: Mon Aug 15, 2005 1:14 pm
by garvinhicking

Posted: Mon Aug 15, 2005 2:52 pm
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.

Posted: Tue Aug 16, 2005 5:30 am
by ckeck
Got it, thanks everyone!

Posted: Fri Sep 02, 2005 11:39 am
by Guest
And what if I use IIS6? Do the standard options for mod_rewrite work on IIS?

Posted: Sat Sep 03, 2005 2:56 pm
by Dinges
you will need the mod_rewrite mod for iis installed.

Posted: Mon Sep 05, 2005 11:02 am
by gnubit
Why don't set the correct directory for the domain?

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