Dragonfly CMS logo Server sponsored and hosted by
DedicatedNOW
CVS logo  
.:: Home :: Dev. Resources :: Forums ::.
Dragonfly CMS CVS Repository
 Location: / cvs / html / .htaccess
This is a web interface to the Dragonfly CMS CVS tree. You can browse the file hierarchy by picking directories. If you pick a file, you will see the revision history for that file.
Selecting a revision number will show that revision of the file. There are links at each revision to display diffs, annotate and download.
Note: Info about CVS and our commits can be found at our CVS Info Forum
File name: html/.htaccess
Revision : 8.1 (9 years 6 months 5 days 23 hours 33 minutes 50 seconds ago) by trevor
Changed : +7 -7 lines
Comment: added Options FollowSymLinks -Indexes to prevent possible bad requests


# Author Rev Line
1 trevor 8.1 # $Id: .htaccess,v 8.0 2004/09/30 10:34:39 djmaze Exp $
2 djmaze 1.1 # Remove the pound sign on these 2 for production sites
3 djmaze 1.1 # php_flag display_errors off
4 djmaze 1.1 # php_value error_reporting 0
5 akamu 1.6 php_flag register_globals 0
6 djmaze 1.7  
7 djmaze 1.1 <limit GET PUT POST>
8 djmaze 1.7 order allow,deny
9 djmaze 1.7 allow from all
10 djmaze 1.1 </limit>
11 djmaze 1.1  
12 djmaze 1.1 # deny most common except .php
13 djmaze 1.1 <filesmatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module|exe)$">
14 djmaze 1.7 deny from all
15 djmaze 1.1 </filesmatch>
16 djmaze 1.1  
17 trevor 8.1 # disable .htaccess viewing from browser
18 djmaze 1.1 <files ~ "^\.ht">
19 djmaze 1.7 Order allow,deny
20 djmaze 1.7 Deny from all
21 djmaze 1.7 Satisfy All
22 djmaze 1.1 </files>
23 djmaze 1.1  
24 djmaze 1.1 <files ~ "\config.php$">
25 djmaze 1.7 deny from all
26 djmaze 1.1 </files>
27 djmaze 1.1  
28 djmaze 1.7 # If you use LEO mod_rewrite is necessary
29 djmaze 1.2 <IfModule mod_rewrite.c>
30 djmaze 1.1 RewriteEngine On
31 djmaze 1.7  
32 djmaze 1.7 # If you use LEO and CPG-Nuke is installed in a sub-directory like '/html'
33 djmaze 1.7 # remove that # before RewriteBase and rename /html to the path of the sub-directory
34 djmaze 1.7 # RewriteBase /html
35 djmaze 1.10 RewriteRule ^index\.html ^index.php
36 djmaze 1.1  
37 djmaze 1.1 #rewrite with &file=
38 djmaze 1.7 RewriteRule ^([a-zA-Z0-9_]*)/([a-zA-Z0-9_]*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)\.html index.php?name=$1&file=$2&$3&$4&$5&$6&$7&$8&$9 [L]
39 djmaze 1.7 RewriteRule ^([a-zA-Z0-9_]*)/([a-zA-Z0-9_]*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)\.html index.php?name=$1&file=$2&$3&$4&$5&$6&$7&$8 [L]
40 djmaze 1.7 RewriteRule ^([a-zA-Z0-9_]*)/([a-zA-Z0-9_]*)/(.*)/(.*)/(.*)/(.*)/(.*)\.html index.php?name=$1&file=$2&$3&$4&$5&$6&$7 [L]
41 djmaze 1.7 RewriteRule ^([a-zA-Z0-9_]*)/([a-zA-Z0-9_]*)/(.*)/(.*)/(.*)/(.*)\.html index.php?name=$1&file=$2&$3&$4&$5&$6 [L]
42 djmaze 1.7 RewriteRule ^([a-zA-Z0-9_]*)/([a-zA-Z0-9_]*)/(.*)/(.*)/(.*)\.html index.php?name=$1&file=$2&$3&$4&$5 [L]
43 djmaze 1.7 RewriteRule ^([a-zA-Z0-9_]*)/([a-zA-Z0-9_]*)/(.*)/(.*)\.html index.php?name=$1&file=$2&$3&$4 [L]
44 djmaze 1.7 RewriteRule ^([a-zA-Z0-9_]*)/([a-zA-Z0-9_]*)/(.*)\.html index.php?name=$1&file=$2&$3 [L]
45 djmaze 1.7 RewriteRule ^([a-zA-Z0-9_]*)/([a-zA-Z0-9_]*)\.html index.php?name=$1&file=$2 [L]
46 djmaze 1.8 RewriteRule ^([a-zA-Z0-9_=+-]*)\.html index.php?name=$1 [L]
47 djmaze 1.11  
48 djmaze 1.11 RewriteRule ^([a-zA-Z0-9_]*)/(.*]*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)\.html index.php?name=$1&file=index&$2&$3&$4&$5&$6&$7&$8&$9 [L]
49 djmaze 1.11 RewriteRule ^([a-zA-Z0-9_]*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)\.html index.php?name=$1&file=index&$2&$3&$4&$5&$6&$7&$8 [L]
50 djmaze 1.11 RewriteRule ^([a-zA-Z0-9_]*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)\.html index.php?name=$1&file=index&$2&$3&$4&$5&$6&$7 [L]
51 djmaze 1.11 RewriteRule ^([a-zA-Z0-9_]*)/(.*)/(.*)/(.*)/(.*)/(.*)\.html index.php?name=$1&file=index&$2&$3&$4&$5&$6 [L]
52 djmaze 1.11 RewriteRule ^([a-zA-Z0-9_]*)/(.*)/(.*)/(.*)/(.*)\.html index.php?name=$1&file=index&$2&$3&$4&$5 [L]
53 djmaze 1.11 RewriteRule ^([a-zA-Z0-9_]*)/(.*)/(.*)/(.*)\.html index.php?name=$1&file=index&$2&$3&$4 [L]
54 djmaze 1.11 RewriteRule ^([a-zA-Z0-9_]*)/(.*)/(.*)\.html index.php?name=$1&file=index&$2&$3 [L]
55 djmaze 1.11 RewriteRule ^([a-zA-Z0-9_]*)/(.*)\.html index.php?name=$1&file=index&$2 [L]
56 djmaze 1.2 </IfModule>
57 djmaze 1.1  
58 trevor 8.1 # use custom error pages if you wish
59 djmaze 1.1 ErrorDocument 403 /error.php?403
60 djmaze 1.1 ErrorDocument 404 /error.php?404
61 djmaze 1.1  
62 trevor 8.1 # disallow index viewing (like ftp) of directory
63 trevor 8.1 Options FollowSymLinks -Indexes
64 trevor 8.1 # for hosts that don't allow the above, we won't give people anything to look at
65 akamu 1.9 # IndexIgnore *
66 trevor 8.1 AddDefaultCharset utf-8


Code Credits - Privacy Policy