@oxid-dev-team: This is not (yet) a feature/optimisation request but what's your opinion about having only one (more or less big) .htdaccess file?
It's possible, it's easy and nobody came up with a real deal breaker... Greeting from Basel Marc ORCA Services AG Herrenmattstrasse 26 CH-4132 Muttenz Office Basel: Aeschengraben 10, CH-4051 Basel [email protected]<mailto:[email protected]> T. +41 61 205 80 80 T. +41 61 205 80 73 (direkt) F. +41 61 205 80 81 www.orca.ch<http://www.orca.ch>, www.orca-services.ch<http://www.orca-services.ch> "We convert your visitors into customers." ________________________________ Von: [email protected] [mailto:[email protected]] Im Auftrag von anzido GmbH Gesendet: Mittwoch, 6. Juli 2011 10:36 An: [email protected] Betreff: Re: [oxid-dev-general] .htaccess files [T-3Y6DVGI4IR-70] > 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]<mailto:[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). I'm 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): ... 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 ... Possible changes are marked ad [1], [2], [3]: --------------------- .htaccess from /: (everything's 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 -Indexes [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]<mailto:[email protected]> T. +41 61 205 80 80 T. +41 61 205 80 73 (direkt) F. +41 61 205 80 81 www.orca.ch<http://www.orca.ch>, www.orca-services.ch<http://www.orca-services.ch> "We convert your visitors into customers." ________________________________ _______________________________________________ dev-general mailing list [email protected]<mailto:[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
