View previous topic :: View next topic |
Author |
Message |
boneless
Joined: 05 Sep 2004 Posts: 29 Location: Netherlands
|
Posted: Mon Sep 06, 2004 1:25 pm Post subject: How to move the entire blog? |
|
|
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 |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 616 Location: Oslo, Norway
|
Posted: Tue Sep 07, 2004 8:15 am Post subject: |
|
|
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 |
|
 |
boneless
Joined: 05 Sep 2004 Posts: 29 Location: Netherlands
|
Posted: Tue Sep 07, 2004 8:46 am Post subject: |
|
|
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 |
|
 |
sh0ck
Joined: 02 May 2004 Posts: 28 Location: Norway
|
Posted: Tue Sep 07, 2004 2:07 pm Post subject: |
|
|
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 |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 616 Location: Oslo, Norway
|
|
Back to top |
|
 |
boneless
Joined: 05 Sep 2004 Posts: 29 Location: Netherlands
|
Posted: Thu Sep 09, 2004 10:20 am Post subject: |
|
|
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 |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 616 Location: Oslo, Norway
|
Posted: Thu Sep 09, 2004 8:39 pm Post subject: |
|
|
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 |
|
 |
|