Jump to content

Probem with apache htaccess file


opstabom

Recommended Posts

I recently used linux and this htaccess file to route all requests to index.php

<FilesMatch "\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template)$">

  Order allow,deny

</FilesMatch>

ErrorDocument 404 /index.php

DirectoryIndex index.php

Options -Indexes

Options +FollowSymLinks

<IfModule mod_rewrite.c>

RewriteEngine on

RewriteRule !\.(js|ico|gif|jpg|png|css|jpeg|pdf|swf)$ index.php [L]

</IfModule>

but on linux this file routes requests to index.php but on Windows this file

routes to index.php by ErrorDocument directive

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.