Click Fraud Protection
PHP related blog, freelancer to hire!

Posts Tagged Apache

FastCGI and PHP Auth (HTTP_AUTH) problem solved

There is a problem with Authorisation headers and php running as FastCGI. To solve it you need to tell FastCGI to pass authorisation headers and then translate it back to PHP So in your vhost file or .htaccess file do: RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.+) RewriteRule ^(.*)$

Read more

RewriteMap causing indefinite redirects

If you’re using Apache mod_rewrite with RewriteMap is causing loop and breaks, probably you had forget about conditions. RewriteMap  links txt:/var/www/bin/rewritemap.txtRewriteCond ${links:$1|Unknown} !UnknownRewriteRule ^/(.*) ${links:$1} [R=301,L,NC] Easy saying – Rule will redirect only when url is found in your mapfile  

Read more