change ADMIN_DIR constant

Feed 10 posts, 4 voices

Avatar
19 posts

If the constant ADMIN_DIR , in config.php is changed the admin panel doens’t work, for all subactions give back a 404 error .

 
Avatar
291 posts

Did you rename the real dir too?

 
Avatar
19 posts

yes .
I’ve tryed these :
1) rename
2) make softlink
but always errors .

 
Avatar
9 posts

I know this post is a few months old but not sure if you have worked this one out… Have just been setting up a new site and wanted to alter the admin folder name and ran into this same issue.

I found that I also needed to update the .htaccess file to overcome this issue.

In the .htaccess file you will find the line:

 RewriteRule ^admin(.*)$ admin/index.php?$1 [L,QSA]

You need to alter this and replace the two instances of the word “admin” with whatever you have renamed the admin folder to.

Hope this helps anyone else running into this issue.

 
Avatar
4 posts

Thanks a lot creativechaos, it fixed the issue for me now.
Definitely needs to be mentioned on Frog.