BaunCMS / Baun

A modern, lightweight, extensible CMS for PHP
https://bauncms.com
MIT License
284 stars 38 forks source link

.htaccess leading into Error 500 #11

Closed Svobi closed 9 years ago

Svobi commented 9 years ago

On my LAMP the distributed .htaccess and the documentated on http://bauncms.com/docs/setup/configuration didnt work. My Solution

Options +FollowSymLinks
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
</IfModule>

Well known pattern :-)

gilbitron commented 9 years ago

Ok good to know. We can't cover every possible server config, but this might be helpful for someone else.