Page 1 of 1
Creating new URL to blog without moving Serendipity files
Posted: Sat Apr 22, 2006 5:16 am
by papermoon
My blog currently resides at the URL
www.myDomainName.com/serendipity/index.php
My hosting provider did the install for me and didn't ask what URL I wanted to use. I would like to leave all the Serendipity files and directories, etc., where they are but allow my readers to get to the blog by simply typing
www.myDomainName.com
(I am using a sluggish REFRESH command at myDomainName.com/index.htm to imitate this. I would rather have the blog load with no hesitation.)
Is it as simple as
(1) deleting "serendipity/" from the end of the path listed as "URL to blog" in the admin panel;
and then
(2) copying the index.php file into the root level (and deleting my current index.htm)?
If not, what advice can you give me?
Thanks in advance.
Re: Creating new URL to blog without moving Serendipity file
Posted: Sat Apr 22, 2006 9:09 pm
by garvinhicking
Hi!
If you want s9y in a different directory, you'll need to move the whole directory + files into that new directory and then adjust all the path configuration and path references in articles you already posted.
So what you proposed would only make serendipity non functional, since it wouldn't find it's files properly.
So either you'll move all the files and fix the paths after moving (like mentioned in the FAQ) or you'll need to stick with your refresh/redirecting index.html file
Regards,
Garvin
Posted: Sun Apr 23, 2006 4:22 am
by papermoon
Thanks for the information. I was afraid my solution was too easy to be right and your explanation makes sense now that I consider it.
I'm sorry to have bothered you with the question if it is explained in the FAQ. What I found there I understood to mean how to move the blog to a completely different domain and/or host.
Thanks again.
Posted: Sun Apr 23, 2006 7:28 pm
by garvinhicking
Hi!
No problem! Hope you can achieve what you need

Have fun with Serendipity,
Garvin
Posted: Sun Jun 04, 2006 1:18 pm
by papermoon
First of all, forgive me if I've breached forum protocol by adding to this thread instead of starting a new one, but this way you can see the history of my question. Secondly, I've searched the FAQ and the forum and do not find information that helps.
Yesterday I was successful in moving all my files from the /serendipity/ directory of my site up one level to the public HTML root. I reset path names in my admin panel. Everything works well if the user goes directly to my index.php:
www.mydomain.com/index.php
I deleted everything in my /serendipity/ directory but then decided to upload a file at serendipity/index.php that tells a user with an old bookmark to go to the new URL.
As I said, when a user keys the full URL, everything works well. When a user keys simply
www.mydomain.com
or if the browser or user inserts the trailing slash
www.mydomain.com/
the user is taken to
www.mydomain.com/serendipity/index.php
even though the browser does not show that URL in the address field at the top of the browser window.
If I delete the /serendipity/ directory completely and key
www.mydomain.com/serendipity/index.php
I end up at my blog, with the browser still showing that URL. That wouldn't be a problem except that when the user links to page 2 (for example), the resultant URL is incorrect.
I have double-checked the paths in my admin and they are correct. What I did yesterday was to delete "serendipity/" from the end of any path that showed it.
If you can provide any direction, that would be very much appreciated. Thanks.
Posted: Sun Jun 04, 2006 2:23 pm
by garvinhicking
Hi!
Your .htaccess file seems to still point to the old directory! Just edit that file and adjust the path there?
HTH,
Garvin
Posted: Sun Jun 04, 2006 2:47 pm
by papermoon
Aha!
I changed the line
DirectoryIndex /serendipity/index.php
to
DirectoryIndex index.php
and that seems to have done the trick. I assume I was correct to delete the lead-in slash. If it should be there, let me know; otherwise, thanks for your prompt and effective reply!
Posted: Sun Jun 04, 2006 2:48 pm
by garvinhicking
Hi!
I think using the leading slash would be more compatible, yes. But it might also work without, I can'T absolutely be certain. *g*
HTH,
Garvin