...
To remove index.php edit the .htaccess provided in the root directory of your Blesta installation file located in /installpath/.htaccess, to appear as follows:
Code Block |
---|
title | .htaccess |
---|
firstline | 1 |
---|
linenumbers | true |
---|
|
########################################################
# package: minPHP
# filename: .htaccess
########################################################
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php
RewriteRule ^(.*)install.php$ $1/install [R=301,L] |
Next, update init.php located in /installpath/lib/init.php as follows:
Code Block |
---|
language | php |
---|
title | init.php |
---|
firstline | 25 |
---|
linenumbers | true |
---|
|
define("HTACCESS", true); |
Changing the path to the Admin area
By default the path to the Admin area begins with /admin/. To change this locate routes.php in /installpath/config/routes.php and modify the value of the "Route.admin" configuration. For example, to change the path of the admin area to /staff/ set the following:
Code Block |
---|
language | php |
---|
title | routes.php |
---|
|
Configure::set("Route.admin", "staff"); |
Changing the path to the Client area
By default the path to the Client area beings with /client/. To change this locate routes.php in /installpath/config/routes.php and modify the value of the "Route.client" configuration. For example, to change the path of the client area to /customers/ set the following:
Code Block |
---|
language | php |
---|
title | routes.php |
---|
|
Configure::set("Route.client", "customers"); |