RewriteEngine on
# Remove .php extension from URLs
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([^/]+)/?$ $1.php [L]

# Rewrite Blog post URLs
RewriteRule ^([\w-]+)/?$ blog-post.php?slug_url=$1 [QSA,L]


ErrorDocument 404 /404

RewriteEngine On
RewriteCond %{HTTP_HOST} ^busicus.com [NC]
RewriteRule ^(.*)$ http://www.busicus.com/$1 [L,R=301]

RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php56” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
