Verwijderd

Topicstarter
Goedenavond,

Ik wil via mod-rewrite mijn AWSTATS map excluden.
Dit is mijn huidige .htaccess file

# BEGIN
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END

Na googlen kwam ik hier op uit: RewriteRule ^awstats/?.*$ - [L]
Maar hiermee kan ik de map AWSTATS niet excluden.

Weet iemand hoe je een specifieke map kan excluden met mod-rewrite

  • Cascade
  • Registratie: Augustus 2006
  • Laatst online: 25-11-2025
Zoiets:
RewriteCond %{REQUEST_URI} !^/awstats/.*$ [NC] (met .*$ optioneel...)

Maar dat 'RewriteCond %{REQUEST_FILENAME} !-d ' sluit al bestaande (fysieke) directories uit voor de RewriteRule.

Let ook op het verschil tussen REQUEST_FILENAME en REQUEST_URI. Meer info hier: http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html

Laat me raden, jij wil awstats aansluiten op een CMS (WordPress toevallig?)? Dan kan het zo: http://www.htaccesselite....ts-not-loading-vt352.html

[ Voor 19% gewijzigd door Cascade op 17-03-2008 21:03 ]


  • NMe
  • Registratie: Februari 2004
  • Laatst online: 22-01 23:51

NMe

Quia Ego Sic Dico.

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.