boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to move the entire blog?

 
Post new topic   Reply to topic    boardom Forum Index -> How to ?
View previous topic :: View next topic  
Author Message
boneless



Joined: 05 Sep 2004
Posts: 29
Location: Netherlands

PostPosted: Mon Sep 06, 2004 1:25 pm    Post subject: How to move the entire blog? Reply with quote

Hi all,

I installed B2 yesterday and in a few days I like to switch from blogger to b2. But:
because I first wanted to see what b2 was like, i've installed it under a directory called blog, (www.boneless.nl/blog/)
Now I want the blog to be my main entrance to the site (www.boneless.nl/index.html).
How can I move the blogentrance from boneless.nl/blog to boneless.nl ?

Thanks for helping out.
Boneless
Back to top
View user's profile Send private message Visit poster's website
Sigg3



Joined: 03 Jul 2003
Posts: 616
Location: Oslo, Norway

PostPosted: Tue Sep 07, 2004 8:15 am    Post subject: Reply with quote

If you have posted anything, or even if you haven't, you should download a backup of your database.

make sure every little setting in b2config.php is set for / not /blog/.

THEN you move the files from /blog/ to /.
_________________
Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
boneless



Joined: 05 Sep 2004
Posts: 29
Location: Netherlands

PostPosted: Tue Sep 07, 2004 8:46 am    Post subject: Reply with quote

Thanks, but does this mean I have to move all files?
Isn't there a way where I can make the index.html automatically redirect the user to /blog/index.php?

Boneless
Back to top
View user's profile Send private message Visit poster's website
sh0ck



Joined: 02 May 2004
Posts: 28
Location: Norway

PostPosted: Tue Sep 07, 2004 2:07 pm    Post subject: Reply with quote

create index.php in /. Put this in:

Code:

<?php header("Location: " . "http://www.yourwebsite.com/blog/"); ?>


It is not cloaked, but it will redirect everyone quickly and painlessly.
_________________
http://www.licklinux.com
Back to top
View user's profile Send private message Visit poster's website
Sigg3



Joined: 03 Jul 2003
Posts: 616
Location: Oslo, Norway

PostPosted: Tue Sep 07, 2004 2:18 pm    Post subject: Reply with quote

That or a META refresh in the <head>:

<META HTTP-EQUIV=Refresh CONTENT="3; URL=http://yoururl.com">

CONTENT is the number of sec's.
_________________
Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
boneless



Joined: 05 Sep 2004
Posts: 29
Location: Netherlands

PostPosted: Thu Sep 09, 2004 10:20 am    Post subject: Reply with quote

Thanks alll,

I tried the php-trick and it worked!

Is there any way to hide the redirected url?
So that visitors see www.boneless.nl in stead of www.boneless.nl/blog
???
Thanks!
Boneless
Back to top
View user's profile Send private message Visit poster's website
Sigg3



Joined: 03 Jul 2003
Posts: 616
Location: Oslo, Norway

PostPosted: Thu Sep 09, 2004 8:39 pm    Post subject: Reply with quote

dot.tk uses a frame. This is not recommended but should work in most browsers..

Kill the refresh page you made and replace it with this:

Code:
<html>

  <head>
    <title>Title</title>
    <meta name="description" content="Short description of your page">
    <meta name="keywords" content="keywords, for, google, and, altavista">
  </head>

  <frameset rows="*,1" framespacing="0" border="0" frameborder="NO">
    <frame src="http://www.boneless.nl/blog" name="whatever" scrolling="auto" noresize>
  </frameset>

  <noframes>
    <body>
    Woops, your page doesn't support frames.<br>
<a href="http://www.boneless.nl/blog/" target="_top">Click here to see my blog!</a></body>
  </noframes>

</html>

_________________
Sigg3 dot net - because you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> How to ? All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group