Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
firstline1
linenumberstrue
########################################################
# 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
languagephp
titleinit.php
firstline25
linenumberstrue
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
languagephp
titleroutes.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
languagephp
titleroutes.php
Configure::set("Route.client", "customers");