Page 1 of 1

To change folder name serendipity

Posted: Sat Jul 08, 2006 4:40 pm
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

Re: To change folder name serendipity

Posted: Sat Jul 08, 2006 6:37 pm
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

Posted: Sat Aug 05, 2006 11:48 am
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/

Re: Similar situation

Posted: Sat Aug 05, 2006 11:10 pm
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

Posted: Mon Aug 07, 2006 10:26 am
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

Posted: Tue Aug 08, 2006 11:25 am
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

Posted: Tue Aug 08, 2006 4:55 pm
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.