Author Topic: How to change the "admin" path  (Read 5028 times)

0 Members and 1 Guest are viewing this topic.

Offline raghunadhn

  • Newbie
  • *
  • Posts: 10
    • View Profile
How to change the "admin" path
« on: March 15, 2009, 05:44:12 AM »
Hi friends,how can we change the admin path?

if our site at min is  www.domains.com/admin,

every one can access it.how can we change this admin area. example:  www.domains.com/myadmin

Offline ahmed_badawy

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: How to change the "admin" path
« Reply #1 on: March 15, 2009, 06:17:52 AM »
me too i want know How to change it

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: How to change the "admin" path
« Reply #2 on: March 15, 2009, 09:46:47 AM »
if your concern is only about access to that directory, then it's not a security risk, because without admin rights noone can harm your gallery.

Unfortunately admin path is hard coded you'll need search for admin/ (with trailing slash) in all files and change it there.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Bogdan

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • Press Release
Re: How to change the "admin" path
« Reply #3 on: March 28, 2009, 06:26:57 PM »
Hi friends,how can we change the admin path?

if our site at min is  www.domains.com/admin,

every one can access it.how can we change this admin area. example:  www.domains.com/myadmin

You can protect your admin folder with the help of htaccess. Put .htaccess in admin folder and write this in the file:

<limit GET>
deny from all
allow from 193.261.......
</limit>
and replace 193.261....... with your actual ip. This way, only you can access the admin folder. Also you can passord protect admin file from cpanel or htaccess