Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-15-2009, 10:00 PM   PM User | #1
chreo
Regular Coder

 
Join Date: Jul 2006
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
chreo is an unknown quantity at this point
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 09:05 PM.. Reason: correcting Tags
chreo is offline   Reply With Quote
Old 09-17-2009, 07:34 PM   PM User | #2
BarrMan
Senior Coder

 
BarrMan's Avatar
 
Join Date: Feb 2005
Location: Israel.
Posts: 1,644
Thanks: 69
Thanked 83 Times in 82 Posts
BarrMan is on a distinguished road
http://perishablepress.com/press/200...access-tricks/

Helped me a lot.
BarrMan is offline   Reply With Quote
Old 02-14-2011, 12:48 PM   PM User | #3
snushah
New to the CF scene

 
Join Date: Feb 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
snushah is an unknown quantity at this point
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 12:51 PM.. Reason: Signatures only allowed through the control panel
snushah is offline   Reply With Quote
Reply

Bookmarks

Tags
.htaccess, .htaccess tutorials, .htpasswd

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:33 PM.


Advertisement
Log in to turn off these ads.