ErrorDocument 404 /404.php

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    Options -MultiViews
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^archive\.html$ /archive.php [L,QSA]
    RewriteRule ^article/([0-9]+)\.html$ /article.php?id=$1 [L,QSA]
    RewriteRule ^standalone/([0-9]+)\.html$ /article.php?id=$1 [L,QSA]
    RewriteRule ^category/([0-9]+)/page/([0-9]+)\.html$ /category.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^category/([0-9]+)\.html$ /category.php?id=$1 [L,QSA]
    RewriteRule ^page/([0-9]+)\.html$ /index.php?page=$1 [L,QSA]
    RewriteRule ^index\.html$ /index.php [L,QSA]
    RewriteRule ^$ /index.php [L,QSA]
    RewriteRule ^([A-Za-z0-9_-]+)\.html$ /article.php?slug=$1 [L,QSA]
</IfModule>
