Another noob question

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Wesley B
Regular
Posts: 27
Joined: Sat Feb 19, 2005 11:48 pm
Contact:

Another noob question

Post by Wesley B »

I think I have my blog set up well enough now that I'd like to make it the main page on my website.

Currently, my main page is at http://www.mindbuzz.net, and my blog is at http://www.mindbuzz.net/serendipity

I can give up the content on the main page, it's mostly just a welcome message.

How do I go about making my blog page address http://www.mindbuzz.net?

Wesley B
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Another noob question

Post by garvinhicking »

The easiest way is to move all the files into the coredirectory.

Then you need to go to Serendipity Administration Panel and change all the Path settings to your new paths. Or you can try to go to serendipity_config DB table via phpMyAdmin if you cannot access your s9y installation anymore

However you will need to adjust ALL your image links in the entries manually. Or you need to have a copy of your upload/ folder in /serendipity/ so that your uploaded files are still there.

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/
Wesley B
Regular
Posts: 27
Joined: Sat Feb 19, 2005 11:48 pm
Contact:

Post by Wesley B »

If someone other than Gavin is up to responding to this real quick, I'm sure there are plenty of people on these forums who will know the answer to my questions, and we can give Gavin a little more time to answer things only he knows the answer too.

By "core directory" do you mean above my html folder?

My current structure begins with my cgibin, html, mail, and other folders first, then under html I have all my pages stored, with folders to my various file types separate, images, etc. Serendipity is of course in it's own folder here, as are my forums, and a chat client.

Guess it wouldn't hurt to have all the serendipity folders and files in my html folder, just wouldn't be as clean as it is now.

Also, will the server automatically understand that index.php is the new page, or does it have to be a .html file?

Sorry for all the very, very, basic questions. I'm an amateur, and this isn't something I've needed to mess with yet.

Wesley B
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Guess it's up to me then! ;-)

By "core directory" I mean the directory which is currently at the base directory of http://www.mindbuzz.net/. This will be something like /var/htdocs/users/mindbuzz.net/htdocs/ (Serendipity would be installed like in /var/htdocs/users/mindbuzz.net/htdocs/Serendipity/).

Basically the only way to have Serendipity "boot up" as http://www.mindbuzz.net/ is to put all Serendipity files within the mentioned core directory. You *could* also try to edit or create a .htaccess file inside your coredirectory with this directive:

Code: Select all

DirectoryIndex serendipity/index.php
But that does not work on all hosts. If you put all your Serendipity files in your core directory, you have to make sure that the applications in the subdirectories will still work. Serendipity's .htacccess may interfer with that, so that you may need to remove the DirectoryIndex or ErrorDocument directive. That is also often dependant on the type of webserver setup.

Usually webservers are configured to treat index.php, index.htm and index.html identically. With the directive above you can change that behaviour, if allowed by your webserver.

So have fun, in the end! :-)

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/
breander

Post by breander »

How would I go about creating this .htaccess file and getting it to redirect my domain name to my blog.

This is my site http://www.dailyranting.com and this is where my blog is http://www.dailyranting.com/blog/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Breanders, that won't work via .htaccess. You need to create a index.htm with a meta refresh to redirect to that page. Search google for "meta refresh" .

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/
Breander

Post by Breander »

Thanks I'll try that.
Post Reply