Jump to content

Changing the name of admin folder!


Guest ufa57

Recommended Posts

Guest ufa57

I'd like to change the name of my 'admin' folder to something else that's very difficult to guess, such as a string of characters, so it makes it that much more difficult for hackers to get into my admin area and screw up my files.

If I do that, what other files do I need to change this name in so my store doesn't start giving problems?

Has anyone ever done this with their cubecart before?

*Sophie*

Link to comment
Share on other sites

You will likely need to change most of the files that are not actually in your admin folder (i.e.- everything in your main shopping cart directory). At the top of most pages, there are a list of include files such as:

include("admin/config.php");

include("admin/settings.inc.php");

You will need to change "admin/" to whatever your new admin folder is called, for all instances of "admin/". If you do so, I would advice searching *every* file to make sure you don't miss any.

Link to comment
Share on other sites

You will likely need to change most of the files that are not actually in your admin folder (i.e.- everything in your main shopping cart directory). At the top of most pages, there are a list of include files such as:

include("admin/config.php");

include("admin/settings.inc.php");

You will need to change "admin/" to whatever your new admin folder is called, for all instances of "admin/". If you do so, I would advice searching *every* file to make sure you don't miss any.

like booker says: if you are going to do this you need to go thru each and every file. Your best bet is to use a 'find and replace with' command in you favorite editor (dreamweaver= ctrl + F, notepad=ctrl + H).

NOTE: do not use the 'replace all' command tho, just click on 'next' and 'replace' and go thru the whole file like that; this also means all in admin folder too!

note 2: backup your whole store before you do this!

Link to comment
Share on other sites

Guest ufa57

Ok, I'll stick with the password protection then. I didn't think it would have been such a hassle to change the file name. :D

Link to comment
Share on other sites

Guest twisted

You're not changing a file name, you're changing a folder name...that means that every file that calls another file in that folder, has to have the directory[folder] name changed in the code. A lot of pages call the same file in multiple places.

It could be worse....cube only has like, 114 files, or something...you could have been using oscommerce...that has over 1100 files.

:cry:

Link to comment
Share on other sites

Guest OskMedia

Easy task i did it in 23 seconds......copy store to compo....use find and replace program on the whole store....wam re upload and ur fine

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...