> Do you see any problem with having only one .htaccess file in the root?
no. RewriteRule ^tmp/(.*) / [R=403,L] Beste Grüße aus Dortmund! Veit Möhlis | Entwicklung u. Support -- anzido GmbH Kirchhörder Str. 12 44229 Dortmund Tel.: 0231 - 60 71 079 Fax.: 0231 - 60 71 081 Mobil:0176 - 8325 1488 Email: [email protected] Web: http://www.anzido.com/ (http://www.anzido.com) USt-ID: DE257982972 Geschäftsführung: Andreas Ziethen Amtsgericht Dortmund HRB 20883 -----Ursprüngliche Daten----- Datum: 05.07.2011 19:14:47 Von: development <[email protected]> An: [email protected] <[email protected]> Betreff: [oxid-dev-general] .htaccess files Vorgang: T-3Y6DVGI4IR-70 > Hi everybody > > Out of curiosity I looked into the various .htaccess files (4 in CE and 5 in > PE). > > Irsquom no expert in this matter and I could be wrong (if so please enlighten > me) but to my understanding I found out the following: > > 1. some lines are inconsistent the way they are written > > 2. some lines are redundant > > 3. some lines could be ported into the .htaccess in the root > > Do you see any problem with having only one .htaccess file in the root? > > It should work and the performance doesn't change anyway according to the > Apache manual (http://httpd.apache.org/docs/2.0/howto/htaccess.html): > > hellip > > Further note that Apache must look for .htaccess files in all > > higher-level directories, in order to have a full complement of > > directives that it must apply. (See section on how directives are > > applied.) Thus, if a file is requested out of a directory > > /www/htdocs/example, Apache must look for the following files: > > /.htaccess > > /www/.htaccess > > /www/htdocs/.htaccess > > /www/htdocs/example/.htaccess > > hellip > > Possible changes are marked ad [1], [2], [3]: > > --------------------- > > .htaccess from /: (everythingrsquos ok, just for your convenience listed) > > --------------------- > > <IfModule mod_rewrite.c> > > Options +FollowSymLinks > > RewriteEngine On > > RewriteBase / > > RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) > > RewriteRule .* - [F] > > RewriteCond %{REQUEST_URI} oxseo\.php$ > > RewriteCond %{QUERY_STRING} mod_rewrite_module_is=off > > RewriteRule oxseo\.php$ oxseo.php?mod_rewrite_module_is=on [L] > > RewriteCond %{REQUEST_URI} > !(\/admin\/|\/core\/|\/export\/|\/modules\/|\/out\/|\/setup\/|\/tmp\/|\/views\/) > > RewriteCond %{REQUEST_FILENAME} !-f > > RewriteCond %{REQUEST_FILENAME} !-d > > RewriteRule !(\.html|\/|\.jpg|\.css|\.pdf|\.doc|\.gif|\.png|\.js|\.htc)$ > %{REQUEST_URI}/ [R=301,L] > > RewriteCond %{REQUEST_URI} > !(\/admin\/|\/core\/|\/export\/|\/modules\/|\/out\/|\/setup\/|\/tmp\/|\/views\/) > > RewriteCond %{REQUEST_FILENAME} !-f > > RewriteCond %{REQUEST_FILENAME} !-d > > RewriteRule (\.html|\/)$ oxseo.php > > </IfModule> > > # disabling log file access from outside > > <FilesMatch "(EXCEPTION_LOG\.txt|\.log$|\.tpl$|pkg.rev)"> > > order allow,deny > > deny from all > > </FilesMatch> > > Options -Indexes > > DirectoryIndex index.php index.html > > --------------------- > > .htaccess in /admin/wysiwygpro/temp/: > > --------------------- > > deny from all [1] [2] > > --------------------- > > .htaccess in /admin/tpl/: > > --------------------- > > AuthUserFile /dev/null [1] > > AuthName Forbidden [1] > > AuthType Basic [1] > > <Limit GET POST> [1] > > require valid-user [1] > > </Limit> [1] > > --------------------- > > .htaccess in /log: > > --------------------- > > # disabling file access [2] [3] > > <FilesMatch .*> [1] [2] [3] > > order allow,deny [2] [3] > > deny from all [2] [3] > > </FilesMatch> [2] [3] > > Options ndashIndexes [2] [3] > > --------------------- > > .htaccess in /tmp: > > --------------------- > > # disabling log file access from outside [2] [3] > > <FilesMatch .*> [1] [2] [3] > > order allow,deny [2] [3] > > deny from all [2] [3] > > </FilesMatch> [2] [3] > > Options -Indexes [2] [3] > > Regards > > Marc > > ORCA Services AG > Herrenmattstrasse 26 > CH-4132 Muttenz > Office Basel: Aeschengraben 10, CH-4051 Basel > > [email protected] > T. +41 61 205 80 80 > > T. +41 61 205 80 73 (direkt) > > F. +41 61 205 80 81 > > www.orca.ch , www.orca-services.ch > > "We convert your visitors into customers." > > _______________________________________________ > dev-general mailing list [email protected] > http://dir.gmane.org/gmane.comp.php.oxid.general
_______________________________________________ dev-general mailing list [email protected] http://dir.gmane.org/gmane.comp.php.oxid.general
