Welcome To Snipplr
Everyone's Recent Snippets Tagged htaccess
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
also requires an .htpasswd file to be created in a secure directory
        
        
        
            0 
        
        
            2171 
        
                    posted 14 years ago by ropehead
            This rule allows you to embed fonts cross domain. Especially good when you are serving your fonts from a CDN.
        
        
        
            0 
        
        
            1586 
        
                    posted 14 years ago by demwunz
            Found answer here: http://community.godaddy.com/groups/web-hosting/forum/topic/ogv-in-firefox-for-html5-video/
        
        
        
            0 
        
        
            1287 
        
                    posted 14 years ago by benjaminpearson
            Blocks bad bots, and image theft, allows visitors inside domains.
        
        
        
            0 
        
        
            3303 
        
                    posted 14 years ago by CKOink
            Redirects all server inquires to the one url to reduce duplicate indexes.  AKA.  http://www.ex.com and   http://ex.com
        
        
        
            0 
        
        
            1269 
        
                    posted 14 years ago by CKOink
            Place directly below 'RewriteEngine On' to ensure that no other redirects interfere with it.
        
        
        
            0 
        
        
            1179 
        
                    posted 14 years ago by batfan
            Add this piece of code in your .htaccess file located in wordpress root directory
        
        
        
            0 
        
        
            1123 
        
                    posted 14 years ago by kirichev
            See here for Amazon EC2 range
https://forums.aws.amazon.com/ann.jspa?annID=877
        
        
        
            0 
        
        
            1435 
        
                    posted 14 years ago by daipratt
            Key for code below:
querystring = just the query string. (e.g. url=page)
index = the page that the query string is appended to (e.g. index.php)
domain.com = the domain and page you want to rewrite to
        
        
        
            0 
        
        
            1227 
        
                    posted 14 years ago by nielsenrc
            When using Joomla, allows you to redirect index.php to the root ( to prevent duplicate content ), without affecting the Joomla admin.
        
        
        
            0 
        
        
            1117 
        
                    posted 14 years ago by batfan
            
