Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Beginner question: Rename Admin Folder don't work


felis8681

Recommended Posts

Thanks to the forum I read that I have to edit the admin/includes/configure.php if I want to change my folder name. So I changed my folder name from admin to test .... to see if it would work.

 

Then I edit the following lines in configure.php:

define('DIR_WS_TEST', '/catalog/test/');

define('DIR_FS_TEST', '/../../../../.../.../catalog/test/');

 

........... but it do not work........... I got an Error: Server not found.......

 

If I change it back to admin ... it works fine again

 

I do hope anyone can assist me with that problem because I have no Idea what I did wrong - it sounds so easy....

Link to comment
Share on other sites

Sophie,

 

You can't change the file definitions NAME, just the definition. So, your admin configure lines should appear like this:

 

<?php

define('HTTP_SERVER', 'https://www.yourdomain.com');

define('HTTP_CATALOG_SERVER', 'http://www.yourdomain.com');

define('HTTPS_CATALOG_SERVER', 'https://www.yourdomain.com');

define('ENABLE_SSL_CATALOG', 'true');

define('DIR_FS_DOCUMENT_ROOT', '/home/content/html/');

define('DIR_WS_ADMIN', '/changedadmin/');

define('DIR_FS_ADMIN', '/home/content/html/changedadmin/');

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/');

 

Where is says changedadmin is the ONLY change you need to make in the /admin/includes/configure.php file.

 

 

 

 

Chris

Link to comment
Share on other sites

  • 2 weeks later...

I' ve made a lot of times but never get worked.Any suggestions?I am following exactly the steps that you reffer

 

What exactly didn't work? There are 2 things to do

1) rename folder name via cpanel

2) update both configure.php files to reflect the changes as posted above

Link to comment
Share on other sites

Yes ia am changing the admin folder insideo of the two configure files and then i am having error and i can't go in to the admin folder.Never did it....

One amateur made the Arc, 5.000 pro made the Titanic...

Link to comment
Share on other sites

What exactly didn't work? There are 2 things to do

1) rename folder name via cpanel

2) update both configure.php files to reflect the changes as posted above

 

 

Yes ia am changing the admin folder insideo of the two configure files and then i am having error and i can't go in to the admin folder.Never did it....

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...