Main Stuff
Root Folder
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)--(.*)\.html$ blog/index\.php?id=$1&title=$2 [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)--(.*)\.html$ blog/index\.php?id=$1&title=$2 [NC]
Root Folder
set $rule_0 1$rule_0;
}
if (!-d $request_filename){
set $rule_0 2$rule_0;
}
if ($rule_0 = "21"){
rewrite ^/(.*)--(.*).html$ /index.php?id=$1&title=$2;
}
set $rule_0 1$rule_0;
}
if (!-d $request_filename){
set $rule_0 2$rule_0;
}
if ($rule_0 = "21"){
rewrite ^/(.*)--(.*).html$ /blog/index.php?id=$1&title=$2;
}
header_blog.inc.php
blog_footer.inc.php
To blogify,
1) Make backups before proceeding...just in case you make an error and want to get back to normal.
2) Open the file that you would like for the blog, like index.html or blog.html. Many Themeforest templates(like Themeforest) and others already a static HTML blog page.
3) Use Firebug to find the beginning '<div>' and closing </div> tag where you want to place the blog.
4) Add the code from the HTML file to the beginning <div> tag into the header_blog.inc.php file.
5) Add the line below into the head; above the other css and js files. This is the only css sheet specific to the blog code and you can alter it to suit your needs.
else{ ?>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<?php
} ?>
That's it. Need more help? Watch the video below.
If you have this method down, you can make a conversion in minutes!