Forum Moderators: phranque
This is the .htaccess rewrite rule I used for the longest time, We moved to a new server company and now the rule doesn't want to work. mod_env is there so is mod_rewrite and mod_ldap, the Envirnmental variable of REMOTE_USER comes from mod_rewrite. I was told, and found some documentation that fastCGI has issues with REMOTE_USER. I removed that and still nothing. I also tried with and withoutthe L-A (look ahead) to see if apache was moving the username after the url. Nothing.
If I place <!--#echo var="REMOTE_USER" --> in a shtml document I get a user agent. I just confused why the rewrite rule is no longer working and if anyone knows a solution
Just to be sure, do you mean you get a username or a user-agent?
RewriteCond %{REMOTE_USER} ^goforit
RewriteRule .* [script.com...] [F]
ErrorDocument 403 /out.php
RewriteCond %{REMOTE_USER} ^goforit
RewriteRule .* - [F]
RewriteRule .* /out.php [F] You might want to check all this with the Server Headers checker.
Jim
Click path: WebmasterWorld->control panel->Server Headers [webmasterworld.com] checker. Very handy.
Jim