This blog is no longer being updated, but thanks for visiting. You can find me here.

one man blogs - click to start over



moving the blog

I’m considering moving this blog. Not far, just into it’s own sub-directory to leave the URL as a ‘homepage’ for other uses. I’m sure with some re-directs I can make it fairly painless, but I’d welcome any suggestions or useful pointers?

# ~ Miniblog 5 Comments


Comments (5)

MarkJanuary 25th, 2007 at 1:51 pm

Oooh, sounds like you’re after a challenge Gordon!

You should be OK though if you update your rewrite rules in your apache config or htaccess file.

You probably want something along the lines of

RewriteRule ^index.php/(.*)$ /blog/index.php/$1 [NC,L,R=301]

(Tip: Don’t put the R=301 in until you’re happy it works.)

This should redirect all of your old blog urls to your new one, except for the homepage and /index.php.

So http://www.onemanblogs.co.uk/index.php will not redirect, but http://www.onemanblogs.co.uk/index.php/ will.

I think…. Need to test it, but I’ve not got much time today!

LyleJanuary 25th, 2007 at 2:35 pm

Yeah, what he said.

And it sounds right too. .htaccess rocks!

AdrianJanuary 26th, 2007 at 12:06 am

Although I would be more interested in why you want to move the blog down a level. I quite like it on the home page.

Unless I am misunderstanding. I have my blog in /blog but the last X posts still appear in root.

GordonJanuary 26th, 2007 at 12:54 am

I want to leave the root as a ‘homepage’ and launch the blog, onemandesigns and ‘something else’ from there in future.

AdrianJanuary 26th, 2007 at 10:44 am

My feeling is people will just go to the blog. Launch pages IMHO rarely do what they are intended to do.

I would move your blog archives down a level (I have 3 blogs that make up my home page, each archived under /blog /site /moblog) and still use the home page as the main part of your blog, as it is now. I would work your current design so you can include windows into other things on your home page perhaps but shifting down a level will just shift your regular readers down a level and confuse newbies.

IMvHO

Sorry, comments for this entry are closed at this time.