Is it possible to have the administration pages on a different place than /admin?

so something like: www.mysite.com/someotheradminlocation

I don't want the admin location to be guessable by hackers.

  • 2
    Knowing the URL for the administration pages is not a security issue in itself, and it should never be. – kiamlaluno Mar 3 '13 at 10:09
  • 1
    Security through obscurity is a waste of time, you should concentrate your efforts elsewhere. Enforce a strong password policy for administrators and make sure your permissions are set up correctly, keep up to date with security updates for core and contrib modules, etc – Clive Mar 3 '13 at 11:24
  • You can look at using two factor authentications to make log in more secure – GoodSp33d Mar 3 '13 at 14:56
  • I was just looking for an additional security method. After the site has been 'hacked'/'defaced' for 2 times in 2 month, I thought having the admin page hidden might add to making it more secure. – Toad Mar 4 '13 at 19:41

This should be very easy. It's under Site building > URL aliases > Add alias (admin/build/path/add) You can add a new URL alias there.

So if you can't find it you might need to install the pathauto module

solution 2

If you are using Drupal 6, you can get the same feature by using the following code in your settings.php file.

function custom_url_rewrite_outbound(&$path, &$options, $original_path) {
    if (preg_match('|^admin(?![^/])(.*)|', $path, $matches)) {
        $path = 'backend'. $matches[1];

function custom_url_rewrite_inbound(&$result, $path, $path_language) {
    if (preg_match('|^backend(?![^/])(.*)|', $path, $matches)) {
        $result = 'admin'. $matches[1];
    if (preg_match('|^admin(?![^/])(.*)|', $path, $matches)) {
        $result = '404'. $matches[1];
  • 1
    But by using outbound function will it not change admin -> new admin path and yet still allow a user to access new admin page when you type in admin ? – GoodSp33d Mar 3 '13 at 15:00
  • The preferred solution should make the admin path unguessable. – Toad Mar 4 '13 at 19:40
  • 1
    The "solution 2" makes sense to me. @Toad, just replace "backend" with your unguessable string and it should work. – greggles Mar 12 '13 at 1:05

There is a module to do what monymirza suggested - http://drupal.org/project/rename_admin_paths

The purpose of this module is to secure drupal backend by overriding admin path.

  • This module is only for D7, OP tagged the question with D6. – niksmac Mar 12 '13 at 1:25
  • Good point, Nikhil, though the project page does give some advice for Drupal 6. – greggles Mar 12 '13 at 13:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.