mikecao / flightphp.com

Flight website
https://flightphp.com
78 stars 22 forks source link

suggested rewrite rules don't work #6

Closed jpodpro closed 7 years ago

jpodpro commented 7 years ago

using the provided rewrite rules gives a "bad request" it seems to partially work when i add a '/' in front of index.php:

RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php [QSA,L]

jpodpro commented 7 years ago

discovered that, despite people saying that rewrite rules can be specified inside the VirtualHost, it cannot. MUST be defined in a .htaccess file.