CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   Reference links about .htaccess/.htpasswd/rewriting (http://www.codingforums.com/showthread.php?t=177124)

chreo 09-15-2009 10:00 PM

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

BarrMan 09-17-2009 07:34 PM

http://perishablepress.com/press/200...access-tricks/

Helped me a lot.

snushah 02-14-2011 12:48 PM

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



All times are GMT +1. The time now is 03:57 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.