Clean URLs

From BBlog

Table of contents

Clean URLs

Enabling Clean URLs

.htaccess

In your blog root directory, there is a file named htaccess-cleanurls. Rename that file to .htaccess.

OR

If you already have a .htaccess file, you might want to do the copy/paste method.

Place the following in your current .htaccess file:

   <Files item>
   ForceType application/x-httpd-php
   </Files>
   <Files section>
   ForceType application/x-httpd-php
   </Files>

config.php

After setting up your .htaccess file, you'll need to edit your config.php (located within the bblog directory). Uncomment these three lines (around line 71) so that:

   // Clean or messy urls ? ( READ README-URLS.txt ! )
   //define('CLEANURLS',TRUE);
   //define('URL_POST','http://someaddress.com/blog/item/%postid%/');
   //define('URL_SECTION','http://someaddress.com/blog/section/%sectionname%/');

becomes

   // Clean or messy urls ? ( READ README-URLS.txt ! )
   define('CLEANURLS',TRUE);
   define('URL_POST','http://someaddress.com/blog/item/%postid%/');
   define('URL_SECTION','http://someaddress.com/blog/section/%sectionname%/');