Newbie Questions Blog as Homepage and HTML Nugget

Having trouble installing serendipity?
Post Reply
Berg
Regular
Posts: 17
Joined: Sat May 20, 2006 5:38 pm

Newbie Questions Blog as Homepage and HTML Nugget

Post by Berg »

I know basic HTML code, but no experience with PHP, I have two questions.

1. In an effort to have the blog as my homepage I inserted the following code:
<meta http-equiv="Refresh" content="1;url=http://www.alphastocks.com/cblog/index.php">
into my index page, which works, but surely there must be a more efficient way make the blog your home page. Not sure how this would work with Google search etc...

2. I want to install a sidebar where I can insert html code or whatever, I read on this forum that I need to insert an 'html nugget', what is that and how do I do it?

Thanks for any feedback.
Berg
Regular
Posts: 17
Joined: Sat May 20, 2006 5:38 pm

Post by Berg »

OK, got the nugget sorted out.
Appreciate comments on how to best set the blog as the home page.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Of course the easiest way to make s9y answer on your homepage is to just install Serendipity into the root of your document tree.

If you can't/won't do that, then your way of redirection is the only really feasible way. Another way would be to use a small index.php file:

Code: Select all

<?php
header('Location: http://www.alphastocks.com/cblog/index.php');
?>
this will be a little bit faster than your HTML Redirection.

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/
Berg
Regular
Posts: 17
Joined: Sat May 20, 2006 5:38 pm

Post by Berg »

I would like to install it in the root html dir but using APLUS.net there doesn't seem to be a way to choose where I install it. By the way the redirect code you posted doesn't work for me. Any ideas how I can put the blog files in the html folder? Tried copy paste, but it doesn't allow me to paste into the html folder from the cblog folder.
Berg
Regular
Posts: 17
Joined: Sat May 20, 2006 5:38 pm

Post by Berg »

Got your php file working (didn't save it as php, doh).
I would prefer having the whole thing installed in my root html folder though
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hm, if your provider installed s9y for you, then I don't see much of a choice here. If you have full FTP access and access to a database, you can install serendipity yourself into the root directory of your site, of course!

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/
Post Reply