Options +FollowSymLinks IndexIgnore / RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME}
!-f RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule ^.*$ /index.php [L]
Put there is a page not found error when I hide index.php at url.
What is wrong, I have debian and the site is at a subfolder of the root.
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php
Work fine with xampp for Linux, but xampp for windows not work.
Check in apache conf if htaccess overwrite is enabled:
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None