Posts Tagged ‘.htaccess’

Protect files starting with a dot in nginx

Posted: 20th May 2014 by admin in all
Tags: , , , , ,

Protect files starting with a dot in nginx: One of the things you have to get used to when switching from the Apache webserver to nginx is that you don’t use local .htaccess files anymore for configuring a vhost. To speed up operations nginx doesn’t allow to locally override settings, forcing you to make the […]

Rewriterule and Frame Forwarding

Posted: 8th November 2012 by admin in all
Tags: , ,

Example of Frame 0: <HTML> <HEAD> <FRAMESET ROWS="100%,*" frameborder=No border=0> <FRAME SRC=""> <FRAME noresize marginwidth="0" scrolling="no" marginheight="0" frameborder=0 border=0> </FRAMESET> </HEAD> </HTML> Example of Redirection: <html> <head> <meta http-equiv="Refresh" content="0;url="> </head> </html> content=" delay-in-seconds-before-redirection ; url=domainname " Cool .htacess rule: RewriteCond %{REQUEST_URI} !^/newsite/ RewriteRule ^(.*)$ /newsite/$1 [L,R=301]