opstabom Posted October 15, 2008 Share Posted October 15, 2008 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 Link to comment https://forums.phpfreaks.com/topic/128510-probem-with-apache-htaccess-file/ Share on other sites More sharing options...
kevin1 Posted October 15, 2008 Share Posted October 15, 2008 What is the problem since you recently used it? Link to comment https://forums.phpfreaks.com/topic/128510-probem-with-apache-htaccess-file/#findComment-666318 Share on other sites More sharing options...
corbin Posted October 16, 2008 Share Posted October 16, 2008 <IfModule mod_rewrite.c> Try <IfModule mod_rewrite> Link to comment https://forums.phpfreaks.com/topic/128510-probem-with-apache-htaccess-file/#findComment-666714 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.