teamo Posted May 2, 2011 Share Posted May 2, 2011 hello, my website amin url is www.website.com/admin ,i want to change it to www.website.com////amin or something else.How to do that?thank you very much. Link to comment Share on other sites More sharing options...
Guest Posted May 2, 2011 Share Posted May 2, 2011 Hong, Use your hosting control panel's file manager or an FTP client to locate the admin directory. Rename it as you want. Then, locate the admin/includes/configure.php file and replace the path's that state admin in them to reflect the new directory name. For example: define('HTTP_SERVER', 'https://www.yourwebsite.com'); define('HTTP_CATALOG_SERVER', 'http://www.yourwebsite.com'); define('HTTPS_CATALOG_SERVER', 'https://www.yourwebsite.com'); define('ENABLE_SSL_CATALOG', 'true'); define('DIR_FS_DOCUMENT_ROOT', '/home/content/html/'); define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/home/content/html/admin/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/home/content/html/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); would become: define('HTTP_SERVER', 'https://www.yourwebsite.com'); define('HTTP_CATALOG_SERVER', 'http://www.yourwebsite.com'); define('HTTPS_CATALOG_SERVER', 'https://www.yourwebsite.com'); define('ENABLE_SSL_CATALOG', 'true'); define('DIR_FS_DOCUMENT_ROOT', '/home/content/html/'); define('DIR_WS_ADMIN', '/newname/'); define('DIR_FS_ADMIN', '/home/content/html/newname/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/home/content/html/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); Notice that only the two references to 'admin' have changed. If you are using v2.3.1 and have .htaccess protection enabled, you will also need to change the reference to 'admin' in the .htaccess file as well to reflect the new directory name. Chris Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.