PDA

View Full Version : I renamed the /admin directory as instructed. Now I have broken links...


evert
7-29-03, 06:49 AM
Hi!

I've renamed the admin directory, as instructed. But now, when trying to admin my store, there are still links being generated that point to /admin


Where do I have to change the directory name as well? I've done the configure.php in the admin/includes, but that doesn't seem to be enough...


Greetz,
Evert

stevel
7-29-03, 11:50 AM
There's also a configure.php in catalog/includes

I don't recall seeing a suggestion to rename the admin folder. I do see one saying to protect it with a password.

evert
7-29-03, 12:12 PM
The INSTALL file says the following:


This creates a directory called 'oscommerce-2.2ms2'. Enter this directory
and copy the 'catalog' directory to the webroot path of your webserver:

cd oscommerce-2.2ms2
cp -R catalog /usr/local/apache/htdocs/

For this example, '/usr/local/apache/htdocs/' is used as the webroot path
of the Apache webserver.

Do the same for the 'admin' directory but rename the directory to a
unique and secret name. This directory does not have to reside inside the
catalog directory, though may need to be manually configured.

stevel
7-29-03, 01:23 PM
Ok - I missed that.

evert
7-29-03, 02:09 PM
np! ;)


Well, currently I am using .htpasswd / .htaccess method as well.

But I still think there should be some explanation on how to successfully relocate the admin directory, without breaking stuff...

cmschool
7-29-03, 02:29 PM
are you sure that this doesn't mean change the directory to something like /htdocs/admin instead of the default directory?

evert
7-29-03, 02:31 PM
Well, whether I rename it or move it, the connections break... :o

stevel
7-29-03, 09:44 PM
Well, looking at the sources, it seems that the only place you should need to change is the admin/includes/configure.php Perhaps you should try clearing your browser cache? I've moved my admin folder a couple of times and it has worked fine.

evert
7-30-03, 01:37 AM
And all you changed was DIR_FS_ADMIN?

Because I've tried that, but it still doesn't work. Even after clearing the browser cache...


Weird... :confused:

stevel
7-30-03, 06:16 AM
My version also has a DIR_WS_ADMIN which I had to change as well. I have the 20030518 package installed.

evert
7-30-03, 06:38 AM
:o :o :o :o :o


I completely missed that one!


I've changed both now, and it works!


Thank you, kind sire! ;)