{"id":749,"date":"2009-05-01T00:53:46","date_gmt":"2009-05-01T05:53:46","guid":{"rendered":"http:\/\/www.emresaglam.com\/blog\/?p=749"},"modified":"2009-05-01T00:53:46","modified_gmt":"2009-05-01T05:53:46","slug":"moved-to-my-new-blog","status":"publish","type":"post","link":"https:\/\/emresaglam.com\/blog\/blog\/2009\/05\/01\/moved-to-my-new-blog\/","title":{"rendered":"Moved to my new blog"},"content":{"rendered":"<p>I&#8217;ve been planning this for a while. I had written my own blog engine, it&#8217;s been bits and pices of code I&#8217;ve been patching to each other with band aid and chewing gum&#8230;<\/p>\n<p>It was good for late 90s and early 2000&#8230; However the net changed, I had to move on, I didn&#8217;t update my blog code accordingly, it became sluggish, I became sluggish&#8230; No updates on my blog, no updates on my code&#8230; So I made one last leap and wrote a small perl script to port my contents to <a title=\"Wordpress\" href=\"http:\/\/wordpress.org\">wordpress<\/a>. It went OK. The content was there, well, at least the text part of it.<\/p>\n<p>The images were another story. I was too lazy to write regexps to cover all my possible images in the content while importing. So I used some <a href=\"http:\/\/httpd.apache.org\/docs\/2.0\/mod\/mod_rewrite.html\">mod_rewrite<\/a> tricks. I think it covered most of my image content.<\/p>\n<p>I preserved the same story ids while importing, this gave me a lot of flexibility on the content that are &#8220;famous&#8221; on my blog: Like <a title=\"Hubless Wheels\" href=\"http:\/\/emresaglam.com\/blog\/183\">this one<\/a>, and <a href=\"http:\/\/www.emresaglam.com\/blog\/294\">this one<\/a>. They were contents that were constantly searched and linked. I couldn&#8217;t afford to lose them. So some more mod_rewrite magic needed. Like converting links like http:\/\/emresaglam.com\/blog\/haber.php?id=183 to http:\/\/emresaglam.com\/blog\/183<\/p>\n<p>In the end, I spent almost equal time writing my perl script and my mod_rewrite rules \ud83d\ude42 (for mod_rewrite: 3 lines to cover RSS, 5 lines to cover image contents plus friendly urls and backward compatibility) I&#8217;ll share them sometime when I&#8217;m not lazy.<\/p>\n<p>Well, hopefully I&#8217;ll go back writing stuff again \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been planning this for a while. I had written my own blog engine, it&#8217;s been bits and pices of code I&#8217;ve been patching to each other with band aid and chewing gum&#8230; It was good for late 90s and early 2000&#8230; However the net changed, I had to move on, I didn&#8217;t update my &hellip; <a href=\"https:\/\/emresaglam.com\/blog\/blog\/2009\/05\/01\/moved-to-my-new-blog\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Moved to my new blog<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[15,9],"_links":{"self":[{"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/posts\/749"}],"collection":[{"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/comments?post=749"}],"version-history":[{"count":2,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/posts\/749\/revisions"}],"predecessor-version":[{"id":751,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/posts\/749\/revisions\/751"}],"wp:attachment":[{"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/media?parent=749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/categories?post=749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/tags?post=749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}