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.
Creating new URL to blog without moving Serendipity files
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Creating new URL to blog without moving Serendipity file
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
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
# 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/
# 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/
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.
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.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
No problem! Hope you can achieve what you need
Have fun with Serendipity,
Garvin
No problem! Hope you can achieve what you need
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/
# 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/
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.
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.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Your .htaccess file seems to still point to the old directory! Just edit that file and adjust the path there?
HTH,
Garvin
Your .htaccess file seems to still point to the old directory! Just edit that file and adjust the path there?
HTH,
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/
# 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/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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
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
# 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/
# 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/