IMPORTANT!

Snipt is going open source. We've toyed with this idea for quite a while, and have finally decided it's the right way to move forward.

A few things:
  • The entire Snipt source code will be released on GitHub under the 3-clause BSD License on Friday, September 10th.
  • While we'd like to think we're perfect, we realize we're only human. By open sourcing the software that runs this website, certain bugs or security flaws may be discovered that could compromise the privacy of your snipts.
  • Only the Lion Burger team will be able to push commits to the Snipt.net site. Contributors should send a pull request to add new features or submit patches.
  • By using this site, you agree not to be too angry or take any legal action against Lion Burger should this whole thing go up in flames some day.
  • Follow us on Twitter for updates.
I agree, close this message
Sign up to create your own snipts, or login.

Latest 100 public snipts » robertbanh's snipts » .htaccess The latest .htaccess snipts from robertbanh.

showing 1-8 of 8 snipts for .htaccess
  • EE: .htaccess file
    DirectoryIndex index.php index.html
    Options -Indexes
    
    <FilesMatch "_CHANGELOG">
    deny from all
    </FilesMatch>
    
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]
    
    # Increase mem for EE - large data sets
    php_value memory_limit 64M
    

    copy | embed

    0 comments - tagged in  posted by robertbanh on Jul 13, 2010 at 4:02 p.m. EDT
  • .htaccess: Allow only from IP
    # Allow only from these 2 IPs
    
    Order Deny,Allow
    Deny from all
    Allow from 311.311.311 322.322.322.322
    

    copy | embed

    0 comments - tagged in  posted by robertbanh on Jul 06, 2010 at 4:32 p.m. EDT
  • Rewrite URL
    # rbanh add for soft linking old dir
    RewriteEngine On
    Options +FollowSymlinks
    RewriteRule ^aaa/(.*)$ /bbb/$1 [L]
    

    copy | embed

    0 comments - tagged in  posted by robertbanh on Jun 23, 2010 at 12:38 p.m. EDT
  • .htaccess rewrite url
    # check for form/thanks with or without trailing slash,
    # and rewrite to /form?m=thanks
    RewriteRule ^form/thanks(/$|$) /form?m=thanks
    

    copy | embed

    0 comments - tagged in  posted by robertbanh on Mar 30, 2010 at 12:19 p.m. EDT
  • .htaccess file to lock down files with db or secure in the prefix
    <FilesMatch "^(db|secure).*$">
    deny from all
    </FilesMatch>
    

    copy | embed

    0 comments - tagged in  posted by robertbanh on Mar 02, 2010 at 11:17 a.m. EST
  • Rewrite .cfm files to files with .cfm
    RewriteEngine On
    Options -Indexes
    
    # redirect all .cfm files to files without .cfm
    RedirectMatch 301 ^(.*)\index.cfm$ $1
    RedirectMatch 301 ^(.*)\.cfm$ $1
    

    copy | embed

    0 comments - tagged in  posted by robertbanh on Feb 15, 2010 at 11:25 a.m. EST
  • Rewrite .htaccess to EE's engine if directory conflicts with existing directory
    RewriteEngine On
    RewriteBase /
    
    # if the file/dir does not exist, append index.php 
    # which will call EE and pull up it's structured url
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/interact/$1 [L]
    

    copy | embed

    0 comments - tagged in  posted by robertbanh on Feb 03, 2010 at 10:10 a.m. EST
  • My Custom .htaccess file
    RewriteEngine On
    #comment out the options followsymlinks when in prod
    #Options +ExecCGI +FollowSymLinks
    RewriteBase /rbanh/blah/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php [L,QSA]
    
    # prevent directory browsing
    Options -Indexes
    
    <FilesMatch "\.(htaccess|svn|xml|inc|.*sql|cache_|.*~)$">
        deny from all
    </FilesMatch>
    

    copy | embed

    0 comments - tagged in  posted by robertbanh on Dec 08, 2009 at 10:21 a.m. EST
Sign up to create your own snipts, or login.