Since HostBill 2.4.5 all URLs in clientarea are by default SEO-friendly. Some example clientarea links: Code:
Knowledgebase article:
http://my.hostbillapp.com/index.php?/knowledgebase/article/20/my-article-title/
Order page:
http://my.hostbillapp.com/index.php?/cart/shared-hosting/
Clientarea:
http://my.hostbillapp.com/index.php?/clientarea/
Customizing SEO URLs
In /includes/config.php file you can find configuration variable: $ca_url_prefix, which can take following values:
$ca_url_prefix="index.php?/"; //will result in urls like: http://my.hostbillapp.com/index.php?/clientarea/
$ca_url_prefix="?/"; //will result in urls like: http://my.hostbillapp.com/?/clientarea/
In order to completely remove index.php and ? part use following configuration:
- /includes/config.php
$ca_url_prefix="/";
Create .htaccess file:
## EXAMPLE .htaccess file for SEO Urls - note mod_rewrite needs to be enabled in your Apache <IfModule mod_rewrite.c> RewriteEngine On #Modify RewriteBase if your HostBill is placed in a virtual host directory RewriteBase / #Checks to see if the user is attempting to access a valid file, #such as an image or css document, if this isn't true it sends the #request to index.php RewriteRule ^downloads/?$ ?cmd=downloads [NC,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] </IfModule>
Which will result in URLs like
http://my.hostbillapp.com/cart/shared-hosting/