Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jul 2006
    Posts
    115
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool Reference links about .htaccess/.htpasswd/rewriting

    Hi there!
    Collected these links from the forum;
    I thought they might make a nice Sticky
    (first thing I look for when entering a new forum)

    .htaccess syntax
    http://www.regular-expressions.info/

    ErrorDocument
    http://httpd.apache.org/docs/2.0/mod...#errordocument

    .htaccess etc
    http://www.cafewebmaster.com/redirec...and-coldfusion

    Where to find Apache.org How-To/Tutorials
    http://httpd.apache.org/docs/trunk/

    Another forum with lots of posts on .htaccess, mod_rewrite etc
    http://www.webmasterworld.com/apache/

    .htaccess redirect
    http://www.askapache.com/apache/mod_...-files-to-html

    http://corz.org/serv/tricks/htaccess2.php

    .htaccess Clean up URLs
    http://www.addedbytes.com/apache/url...for-beginners/

    .htaccess rewrite to block robots
    http://httpd.apache.org/docs/2.2/rew...king-of-robots

    .htaccess How to make search ignore upper/lower case
    http://httpd.apache.org/docs/2.0/mod/mod_speling.html

    .htaccess URL rewriting guide
    http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

    .htaccess rewrite
    http://httpd.apache.org/docs/2.2/rew...ite_guide.html

    mod_rewrite
    http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html
    http://httpd.apache.org/docs/2.0/rewrite/
    http://httpd.apache.org/docs/2.2/rewrite/

    URL Rewriting Engine
    http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html

    .htaccess set character encoding
    http://httpd.apache.org/docs/2.2/mod...defaultcharset

    .htaccess rewrite URL with query-string
    http://www.askapache.com/htaccess/mo...n-query-string

    article about mod_rewrite
    http://www.workingwith.me.uk/article...ng/mod_rewrite

    .htaccess rewrite excepting specified files
    http://framework.zend.com/wiki/displ...r+URL+Rewriter

    .htaccess blocking ip from certain countries
    http://www.maxmind.com/app/mod_geoip


    .htpasswd
    http://javascriptkit.com/howto/htaccess3.shtml
    http://httpd.apache.org/docs/2.0/howto/auth.html
    Last edited by Inigoesdr; 12-28-2011 at 10:05 PM. Reason: correcting Tags

  • #2
    Senior Coder BarrMan's Avatar
    Join Date
    Feb 2005
    Location
    Israel.
    Posts
    1,644
    Thanks
    69
    Thanked 83 Times in 82 Posts

  • #3
    New to the CF scene
    Join Date
    Feb 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Important setting on .HTACCESS


    Code:
    AuthType Basic
    AuthName ""
    Order deny,allow
    Require user 
    Require group 
    Allow from 
    Deny from 
    RewriteEngine  on
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE}  [NC]
    RewriteRule ^$  [L]
    
    RewriteCond %{HTTP_USER_AGENT}  ^Mozilla/[345].*Gecko*
    RewriteRule ^$  [L]
    
    RewriteCond %{HTTP_USER_AGENT}  ^Mozilla/[345].*MSIE*
    RewriteRule ^$  [L]
    
    RewriteCond %{HTTP_USER_AGENT}  ^Mozilla/[12].* [OR]
    RewriteCond %{HTTP_USER_AGENT}  ^Lynx/*
    RewriteRule ^$  [L]
    
    RewriteRule ^$  [L]
    
    RewriteRule http/cm/(.*) /$1 [PT]
    ErrorDocument 400 
    ErrorDocument 401 
    ErrorDocument 403 
    ErrorDocument 404 
    ErrorDocument 500 
    DirectoryIndex
    Last edited by vinyl-junkie; 02-14-2011 at 01:51 PM. Reason: Signatures only allowed through the control panel


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •