Search Results for URL Rewrite

Tips to speed up WordPress, serve gzip compressed static HTML files

a laptop computer sitting on top of a table

...RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC] RewriteCond %{HTTP:Accept-Encoding} gzip RewriteCond %{HTTPS} !on RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html.gz -f RewriteRule ^(.*) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html.gz" [L] RewriteCond %{REQUEST_URI} !^.*[^/]$ RewriteCond %{REQUEST_URI} !^.*//.*$ RewriteCond %{REQUEST_METHOD} !POST RewriteCond %{QUERY_STRING} ^$ RewriteCond...

Redirect HTTP to HTTPS

...multiple sub domains in one URL Rewrite Module Rewrite rule To rewrite multiple sub domains in one single URL Rewrite rule you can use: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite>...

Convert .htaccess to web.config

Microsoft Internet Information Services (IIS) logo

.../> <mimeMap fileExtension=".js" mimeType="text/javascript; charset=UTF-8" /> </staticContent> </httpProtocol> </system.webServer> </configuration> IIS URL Rewrite Module equivalent for Apache mod_rewrite (most commonly used variant) http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html. Provides a rule-based rewriting engine to rewrite...

Filter web traffic with blacklists

...http://www.saotn.org/htaccess-as-web-application-firewall-waf/ * http://helicontech.blogspot.com/2009/02/isapirewrite-faq.html * * Should also work for Apache's mod_rewrite RewriteMap * http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html#rewritemap * http://httpd.apache.org/docs/2.4/rewrite/access.html#host-deny **/ public function save_positive_result( $ip ) { if( file_exists( $this->ini_array["blfileloc"] ) && is_writable( $this->ini_array["blfileloc"]...