To change folder name serendipity

Having trouble installing serendipity?
Post Reply
Kohji
Posts: 4
Joined: Wed Jul 05, 2006 7:46 am
Location: Tokyo
Contact:

To change folder name serendipity

Post by Kohji »

Finally i‘ve installed the blog program.:D
Now is running with this address: www.tokyographics.com/serendipity
How can I to change to this address: www.tokyographics.com/blog
I tried just changed it the rename the serendipity folder to name blog but I got a 403 error. I’m a beginner in this word.
Please I need a help!

Thank you to all in advance.
Kohji
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: To change folder name serendipity

Post by garvinhicking »

Hi!

You can easily rename the dir and then adjust the new paths in the admin section. Read the FAQ on www.s9y.org for details :)

You will need to either remove or edit your .htaccess file, possibly.

Best 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/
larry2148
Posts: 2
Joined: Sat Aug 05, 2006 11:38 am

Post by larry2148 »

You can use a <meta> html redirect in your index.html to redirect requests to www.domain.com to www.domain.com/blog/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Similar situation

Post by garvinhicking »

Hi Jeremy!

For you, you can also use the procedure described in the FAQ; you can move directories with the same instructions like moving s9y to another server.

Best 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/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Okay, so I suppose you have a folder called "serendipity" in your FTP root, right?

Now do that:

1. Via FTP, simply move all files from "serendipity" to "/". Make sure you copy/move ALL files; some files like .htaccess and serendipity_config_local.inc.php might not be writable for you . In that case you need to upload a script like the fixperm.php script mentioned in the FAQ and run it on your server to relax the permissions.

2. After having moved thef iles, you login to serendipity via http://www.hicotndanceclub.com/serendipity_admin.php instead of your old URL http://www.hicotndanceclub.com/serendip ... _admin.php.

3. When you are now logged in, you go to your s9y configuration. There you change ALL paths that have "serendipity/" in it. Simple replace the string "serendipity/" with "/". Then save your configuration.

4. Now you can call http://www.hicotndanceclub.com/ to view your blog!

Best 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/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You do not need to create a new "Serendipity" folder! You only need to move all contents from there to "/". Mark all files within the folder and move them; do not move the folder itself, because that would not move any file - target and destination would be the same.

You do want to put serendipity into the root AKA "/", right?
Is the meta redirect a good option? If I did that method, I believe I would use the index.php instead of index.html? Is that correct? And I would edit that file in a program such as Notpad? But how would I save it in the correct php format, if that makes sense? And where in the file would I insert the redirect?
Redirection would also work, but it's nicer to put s9y where you want it to be; not to redirect stuff up and around :)

Best 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/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

See, in HTTP and Unix, the first directory is called root, and it's shown as a plain "/". It holds all the files and directories in the entire system.

So "/serendipity" is actually a folder called "serendipity" in the "/" directory. Likewise, "/serendipity/index.php" is a file named "index.php" in the "serendipity" directory, which is itself in the "/" directory.

If you're sitting in "/" and try to change "serendipity" to "/", you're creating a duplicate directory name. There's already a "/". The folder "serendipity" is in it. It would be like trying to rename C:\serendipity to C:\ in Windows.

What you need to do is move all the files and directories from /serendipity to /. So, /serendipity/index.php becomes /index.php. And so on for everything else there.
Judebert
---
Website | Wishlist | PayPal
Post Reply