Page 1 of 1
Redirection
Posted: Mon Apr 11, 2005 2:10 am
by neumannu47
Serendipity is installed in the /serendipity/ folder. I have now decided that I want the blog to be the home page. How can I redirect root to /serendipity/ seamlessly? HTML redirects are not very clean. Is there PHP code that makes the transition invisible? Any other suggestions welcome. If there is no code to do so, do I have to reinstall Serendipity in the root folder?
Posted: Mon Apr 11, 2005 8:52 am
by nohn
<?php
header("Location:
http://yourserver/serendipity/");
?>
Posted: Mon Apr 11, 2005 10:31 am
by garvinhicking
Another opption is via a .htaccess in your root folder:
Code: Select all
DirectoryIndex serendipity/index.php
Regards,
Garvin
Posted: Mon Apr 11, 2005 2:14 pm
by neumannu47
Is DirectoryIndex serendipity/index.php the entire contents of the file?
Posted: Mon Apr 11, 2005 2:26 pm
by neumannu47
When I try this and go to the root folder with IE, I get the correct page, but I also get this error: "Error: Access is denied to
http://domain.com/serendipity/index.php ... havior.htc". Any idea what that means? If I surf directly to
http://domain.com/serendipity, I do not get that error.
Posted: Mon Apr 11, 2005 4:50 pm
by garvinhicking
Please give us the full URL to the page you're using.
You must use the same URL to enter the page as you have configued in your "baseURL" Serendipity directive. Else the IE will complain that plugins are accessed frmo a different URL.
Regards,
Garvin