Google Translate: |
Changing the Admin LocationA security feature of CubeCart version 4 is the ability to change the path of the Administration area.This can easily be done by following these easy steps. 1. Find the following file: /admin.php Rename it to your required name, for this example we are going to call it 'myadmin1.php'.2. Find the following directory: /admin/ Rename it to your required name, for this example we are going to call it 'my_admin_directory'.3. Find the following file: /includes/global.inc.php Edit the file, and you will see the following contents similar to below. Note the entries for 'adminFile' and 'adminFolder':
<?php
4. Change the file to show the changed admin file and folder, as shown below:
$glob['adminFile'] = 'admin.php'; $glob['adminFolder'] = 'admin'; $glob['dbdatabase'] = 'my_database_name'; $glob['dbhost'] = 'localhost'; $glob['dbpassword'] = 'my_password'; $glob['dbprefix'] = 'myPrefix_'; $glob['dbusername'] = 'my_username'; $glob['encoder'] = 'ioncube'; $glob['installed'] = '1'; $glob['license_key'] = 'XXXXX-XXXX-X-XXXXXXXXXX-XXXXXXXX'; $glob['rootRel'] = '/shop/'; $glob['storeURL'] = 'http://www.mydomain.com/shop'; ?>
<?php
$glob['adminFile'] = 'myadmin1.php'; $glob['adminFolder'] = 'my_admin_directory'; $glob['dbdatabase'] = 'my_database_name'; $glob['dbhost'] = 'localhost'; $glob['dbpassword'] = 'my_password'; $glob['dbprefix'] = 'myPrefix_'; $glob['dbusername'] = 'my_username'; $glob['encoder'] = 'ioncube'; $glob['installed'] = '1'; $glob['license_key'] = 'XXXXX-XXXX-X-XXXXXXXXXX-XXXXXXXX'; $glob['rootRel'] = '/shop/'; $glob['storeURL'] = 'http://www.mydomain.com/shop'; ?> IMPORTANT: The file name and directory/folder are case sensitive. 5. Save and upload the new 'global'inc.php', and log into your admin using the address: http://www.mydomain.com/shop/myadmin1.php 6. If you have a robots.txt file in the root of your store, you should also change the reference to the admin directory in this file. If the following file or text does not exist, then you don't need to follow this part. Download, and edit the file... look for the following line (roughly line 5)... Disallow: /admin/
Replace with....
Disallow: /my_admin_directory/
However, having the admin directory listed in the robots.txt file defeats the point of changing it's name, therefore having this listed is entirely your choice.
|
| Comments, Feedback, Suggestions and Documentation Submissions please post in the Documentation Chat Forum. |