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 : 1.6 (9 years 8 months 12 hours 59 minutes 2 seconds ago) by akamu
Changed : +2 -2 lines
Comment: added
define('_MODULENOEXIST', 'We\'re sorry, but the requested file, %s, does not appear to exist');//NEW akamu
for index.php


# Author Rev Line
1 akamu 1.6 # $Id: .htaccess,v 1.5 2004/08/14 10:29:57 akamu 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.1 <limit GET PUT POST>
7 djmaze 1.1 order allow,deny
8 djmaze 1.1 allow from all
9 djmaze 1.1 </limit>
10 djmaze 1.1  
11 djmaze 1.1 # deny most common except .php
12 djmaze 1.1 <filesmatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module|exe)$">
13 djmaze 1.1 deny from all
14 djmaze 1.1 </filesmatch>
15 djmaze 1.1  
16 djmaze 1.1 #Disable .htaccess viewing from browser
17 djmaze 1.1 <files ~ "^\.ht">
18 djmaze 1.1 Order allow,deny
19 djmaze 1.1 Deny from all
20 djmaze 1.1 Satisfy All
21 djmaze 1.1 </files>
22 djmaze 1.1  
23 djmaze 1.1 <files ~ "\config.php$">
24 djmaze 1.1 deny from all
25 djmaze 1.1 </files>
26 djmaze 1.1  
27 djmaze 1.2 <IfModule mod_rewrite.c>
28 djmaze 1.1 RewriteEngine On
29 djmaze 1.1 RewriteRule /index.html /index.php
30 djmaze 1.1 RewriteRule ^([a-zA-Z0-9_=+-]*)\.html index.php?name=$1
31 djmaze 1.1  
32 djmaze 1.1 #rewrite with &file=
33 djmaze 1.3 RewriteRule ^([a-zA-Z0-9_]*)/([a-zA-Z0-9_]*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)\.html index.php?name=$1&file=$2&$3&$4&$5&$6&$7&$8&$9
34 djmaze 1.3 RewriteRule ^([a-zA-Z0-9_]*)/([a-zA-Z0-9_]*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)\.html index.php?name=$1&file=$2&$3&$4&$5&$6&$7&$8
35 djmaze 1.3 RewriteRule ^([a-zA-Z0-9_]*)/([a-zA-Z0-9_]*)/(.*)/(.*)/(.*)/(.*)/(.*)\.html index.php?name=$1&file=$2&$3&$4&$5&$6&$7
36 djmaze 1.3 RewriteRule ^([a-zA-Z0-9_]*)/([a-zA-Z0-9_]*)/(.*)/(.*)/(.*)/(.*)\.html index.php?name=$1&file=$2&$3&$4&$5&$6
37 djmaze 1.3 RewriteRule ^([a-zA-Z0-9_]*)/([a-zA-Z0-9_]*)/(.*)/(.*)/(.*)\.html index.php?name=$1&file=$2&$3&$4&$5
38 djmaze 1.3 RewriteRule ^([a-zA-Z0-9_]*)/([a-zA-Z0-9_]*)/(.*)/(.*)\.html index.php?name=$1&file=$2&$3&$4
39 djmaze 1.3 RewriteRule ^([a-zA-Z0-9_]*)/([a-zA-Z0-9_]*)/(.*)\.html index.php?name=$1&file=$2&$3
40 djmaze 1.1 RewriteRule ^([a-zA-Z0-9_]*)/([a-zA-Z0-9_]*)\.html index.php?name=$1&file=$2
41 djmaze 1.2 </IfModule>
42 djmaze 1.1  
43 djmaze 1.1 # You can change to yoursite.com
44 djmaze 1.1 ErrorDocument 403 /error.php?403
45 djmaze 1.1 ErrorDocument 404 /error.php?404
46 djmaze 1.1  
47 akamu 1.5 Options -Indexes
48 akamu 1.5 AddDefaultCharset utf-8


Code Credits - Privacy Policy