Site admin login problem: conflict due to rewritten /admin url
Chillstar
Joined: 2005-09-29
Posts: 5 |
Posted: Mon, 2005-10-24 15:16 |
Hello, I have 4 multisites running happily on my server. I updated them all to 2.01 and all went well. Over the weekend I got a message from one gallery owner asking what the username/ pwd was for the site admin. On investigation they were logging in to gallery fine, but clicking the site admin link threw up a user/ pass login box as you would get if you set restricted access using .htaccess I realised the problem- my Cobalt server uses www.site.com/admin as a login to the server's admin GUI. The offending site is running on the root of the site so the login link is: I tried another multisite which was OK, but the gallery there is running on www.site.com/gallery I have got around the problem by asking the user to get to the site admin via: But that's not an ideal solution and I realise there is potential for confusion. I thought I would post this in case it helps others, but also to find if there's a way to change the login link from /admin to /photoadmin to get around the conflict. I tried changing Quote:
RewriteCond %{THE_REQUEST} \ /admin/(\?.|\ .) to Quote:
RewriteCond %{THE_REQUEST} \ /photoadmin/(\?.|\ .) without luck- I'm no expert in these things, but I can guess the above change is only half of the fix- it's translating the new link OK, but the link in the PHP needs to change too- and that's where I'm lost. Any help appreciated, Thx |
|
Posts: 32509
in site admin -> url rewrite
remove or change the "Site Admin" rewrite rule (/admin)
Posts: 5
Wow- I'm just finding my way around G2, but have to say that the dev team really do seem to have thought of everything!
Thanks- what an easy fix!
valiant, your great help in these forums and the amazing product that is Gallery 2 have just compelled me to donate- it was criminal not to...
C*
Posts: 32509
heh, thanks