Errr, some catchy title.... RSS 2.0
 Wednesday, June 06, 2007

I moved my blog from www.greatestcoder.com to www.greatestcoder.com/blog/. If you will hit the first page though, you will be automatically redirected to the second page. Here’s how you can do it in the easiest way possible. Create index.html with the following content:

 

 

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

    <title title="Marcin Waligora" />

    <meta http-equiv="refresh" content="0;url=http://www.greatestcoder.com/blog/" />

</head>

<body>

</body>

</html>

 

The only thing that is interesting here is the meta tag.

 

http-equiv="refresh"

 

This attribuge will tell the server that the page is going to be redirected.

 

content="0;url=http://www.greatestcoder.com/blog

 

Here we have two things into consideration – 0 indicates the amount of time (in seconds) how long the client should wait before being automatically redirected to another page (here idicated by the url tag).

 

On a lot of pages you will see some information, like : “we’re going to redirect you to a different page in 5 seconds. Click here if you don’t wish to wait”.

 

After moving the application I had one problem, all the pictures that I’ve embedded in the posts were using absolute path. So when I moved my application, none of the pictures were displayed. I had to update my previous posts to reflect this change. It would seem logical (if you’re adding your own copy of the image) to the post that it should use relative path instead of absolute. Then, moving a blog to a new location would be a matter of copying all the files.

 

Hey, this sounds like a feature request for das blog guys J.

Wednesday, June 06, 2007 2:27:40 PM (GMT Standard Time, UTC+00:00)  #    Comments [0] -
Html
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2008
Marcin Waligora
Sign In
All Content © 2008, Marcin Waligora
DasBlog theme 'Business' created by Christoph De Baene (delarou)