Hi All,
Sorry for this post if it is obvious.

I need to change the re-write rule (or the link) for the admin pages. My site has a symbolic link for all domains on my server so [hostname]/admin redirects to the admin page for that domain.

When I enable clean URL's, the admin link obviously redirects there instead of the drupal pages.

Any ideas? TIA!!

Geoffrey

Comments

djhomeless@jabber.org’s picture

Does anyone know what I can change in .htaccess?? I'm really stuck here...

thanks!

wcrowshaw@yahoo.com’s picture

My discovery is that you can only change what your apache install will let you change. Additionally, a few of the php_value changes are only allowed to be changed in .htaccess while others are not. Check out php.net manual for those directives. I did read a earlier post by somewho who said their drupal install works fine without php_value register_globals.

That said, I have found no documentation that says drupal absolutely needs the .htaccess overwrite or else it won't run at all. No surprise there.


--

William

djhomeless@jabber.org’s picture

Thanks all,
In the end i just cheated and changed the apache directives for just my domain (the server I run has others).

So domainname.com/admin on my drupal'd domain goes to drupal. Other domains works as expected.

Its not the best solution but at least it works. :)

djhomeless@jabber.org’s picture

Hmmm,
I've just been pouring over my httpd.conf file and modifying the base rewrite rule (that redirects from /admin to the administration url and port) is not something I want to do.

Is there an easy way to do one of the following:
1. Enable 'clean' url's for just the live site?
2. Modify the link so admin becomes 'administration'? I tried this in the admin module but only part of the pages load.
3. Do what I originally posted, modify the re-write rule in .htaccess.

Any ideas anyone? TIA

dries’s picture

It is possible and has been explained in the forums only one or two weeks ago. Unfortunately, I can't find the forum topic at this moment. Dig the forums and you will find.

ShiftThis’s picture

There is an easy way to fix this problem.

  1. First you need to have the Path Module enabled on your Drupal installation. You can access your module administration by typing in this address: http://www.yoursite.com/admin/modules and then enabling the Path Module (if you've already enabled the Path Module skip to next step)
  2. Go to http://www.yoursite.com/admin/path and add these url aliases:
    1. Existing System Path: admin New Path Alias: administration
    2. Existing System Path: user New Path Alias: usr
  3. That's it, your menu should work without any problems now