claudehohl / Stikked

An advanced and beautiful pastebin written in PHP
991 stars 220 forks source link

Fix htdocs/.htaccess #528

Closed vsafr closed 4 years ago

vsafr commented 5 years ago

Hi!

RewriteCond $1 !^(index\.php|\.well-known|static|favicon\.ico|robots\.txt|sitemap.xml|google(.+)\.html)

This shall include 'themes' otherwise it rewrites to index.php and makes useless php call.

<IfModule mod_expires> should be <IfModule mod_expires.c> with .c

claudehohl commented 4 years ago

appending .c to modules: yes, including themes in rewrite-rule: no. We have .php files inside themes that wouldn't get parsed: https://github.com/claudehohl/Stikked/tree/master/htdocs/themes/default/views

https://github.com/claudehohl/Stikked/commit/09435ff69a574fa783873dd26516788cf0a06f4f