[BlueOnyx:02839] Re: admin redirect
T. Jay Fowler
tjay at lowbrow.com
Sat Nov 7 17:18:48 -05 2009
On Nov 7, 2009, at 1:39 PM, Ken Marcus - Precision Web Hosting, Inc
wrote:
>
> ----- Original Message -----
> From: Mr. Julliet Smit
>>>
> I have installed Drupal on my server. It works great. But when i
> want to
> login in Drupal www.site.com/admin it redirects to the BlueOnyx
> admin page.
> Is there an solution to redirect only to the admin page with:
> ip:444/login.php
>
I run drupal, and this is what I have:
RewriteEngine On
RewriteCond %{HTTPS} =on
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteCond %{DOCUMENT_ROOT} !-d
RewriteRule .* https://%1:81/error/forbidden.html
[L,R]
#RewriteCond %{HTTP_HOST} ^([^:]+)
#RewriteRule ^/admin/?$ https://%1:81/login.php [L,R]
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteRule ^/siteadmin/?$ https://%1:81/login.php [L,R]
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteRule ^/personal/?$ https://%1:81/login.php [L,R]
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteRule ^/login/?$ https://%1:81/login.php [L,R]
# ssl is on for the admin server by default
<VirtualHost _default_:444>
SSLEngine off
RewriteEngine On
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteCond %{DOCUMENT_ROOT} !-d
RewriteRule .* http://%1:444/error/forbidden.html
[L,R]
#RewriteCond %{HTTP_HOST} ^([^:]+)
#RewriteRule ^/admin/?$ http://%1:444/login.php [L,R]
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteRule ^/siteadmin/?$ http://%1:444/login.php [L,R]
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteRule ^/personal/?$ http://%1:444/login.php [L,R]
RewriteCond %{HTTP_HOST} ^([^:]+)
RewriteRule ^/login/?$ http://%1:444/login.php [L,R]
</VirtualHost>
More information about the Blueonyx
mailing list