NE-Andy
11-18-2007, 03:48 AM
I am having some strange htaccess issue... I want all none existing file/folder requests of /login or /login/blah to be be rewritten to admin.fcgi and everything else (IE: /timeline, /wiki, /timeline/blah, /wiki/blah, etc.) to be forwarded to index.fcgi. This is my htaccess right now:
DirectoryIndex index.fcgi
<Files "admin.fcgi">
AuthType Basic
AuthUserFile /home/path/to/.htpasswd
AuthName "Trac Sign In"
require valid-user
</Files>
Options ExecCGI FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^login$ admin.fcgi/login [L]
RewriteRule ^login/(.*)$ admin.fcgi/login/$1 [L]
RewriteRule ^logout$ index.fcgi/logout [L]
RewriteRule ^logout/(.*)$ index.fcgi/logout/$1 [L]
RewriteRule ^(.*)$ index.fcgi/$1 [L]
</IfModule>
But I get HTTP 500 errors with that... any recommendtations on how to fix it and why? >_<
DirectoryIndex index.fcgi
<Files "admin.fcgi">
AuthType Basic
AuthUserFile /home/path/to/.htpasswd
AuthName "Trac Sign In"
require valid-user
</Files>
Options ExecCGI FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^login$ admin.fcgi/login [L]
RewriteRule ^login/(.*)$ admin.fcgi/login/$1 [L]
RewriteRule ^logout$ index.fcgi/logout [L]
RewriteRule ^logout/(.*)$ index.fcgi/logout/$1 [L]
RewriteRule ^(.*)$ index.fcgi/$1 [L]
</IfModule>
But I get HTTP 500 errors with that... any recommendtations on how to fix it and why? >_<
