Tags » Htaccess

call any file as a index file in a folder using htaccess file

Htaccess code

DirectoryIndex FILE_NAME.php

then file call as a index file

Htaccess

Increase the site speed using htaccess in wordpress

# BEGIN WordPress

ExpiresActive On
ExpiresDefault “access plus 1 seconds”
ExpiresByType image/x-icon “access plus 1 year”
ExpiresByType image/jpeg “access plus 1 year”
ExpiresByType image/png “access plus 1 year” 625 more words

WordPress

All in One htaccess

<IfModule mod_deflate.c>
# Insert filters / compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml… 410 more words

Wordpress

FT booster htaccess

# compress text, html, javascript, css, xml:

AddOutputFilterByType DEFLATE text/plain

AddOutputFilterByType DEFLATE text/html

AddOutputFilterByType DEFLATE text/xml

AddOutputFilterByType DEFLATE text/css

AddOutputFilterByType DEFLATE application/xml

AddOutputFilterByType DEFLATE application/xhtml+xml… 102 more words

Wordpress

How to stop spam referrals and filter them from Google Analytics (Using htaccess)

Many of us have seen spikes in traffic report from Google Analytics. These spikes bring joy to our minds and when we drill down the traffic we get disappointed because it is from a spam referral. 350 more words

Apache

Serve scaled images from htaccess in wordpress

<IfModule mod_rewrite.c>
# Adaptive-Images ———————————————————————————–

# Add any directories you wish to omit from the Adaptive-Images process on a new line, as follows:
# RewriteCond %{REQUEST_URI} !some-directory… 53 more words

Wordpress

Page load optimizing using .htaccess

RewriteEngine On
Options +FollowSymLinks
RewriteBase /

RewriteCond %{HTTP_HOST} ^beta.mysite.com
RewriteCond %{HTTP_HOST} ^mysite.com
RewriteCond %{HTTP_HOST} !beta.mysite.com
RewriteRule ^(.*)$ http://mycompanysite.com/$1

AddType font/ttf .ttf
AddType font/eot .eot
AddType font/otf .otf… 129 more words