AddCharset UTF-8 .php RewriteEngine on #/t/ is a thumbnail. Depreceated form, though included. Remove if you're on a new site. #Those are for sites with the simpleurl-feature turned off. If you enable it, you might want to comment those out. RewriteRule ^t/([0-9]+)x([a-f0-9]{5})$ /view.php?id=$1&t=1&code=$2 RewriteRule ^([0-9]+)x([a-f0-9]{5})$ /thumb.php?id=$1&code=$2 RewriteRule ^l/([0-9]+)x([a-f0-9]{5})$ /view.php?id=$1&code=$2 RewriteRule ^([0-9]+)x([a-f0-9]{5}).jpg$ /view.php?id=$1&t=1&code=$2 #These are for simpleurl-usage. If you don't use them, you might want to turn it off. RewriteRule ^t/([0-9]+)$ /view.php?id=$1&t=1 RewriteRule ^([0-9]+)$ /thumb.php?id=$1 RewriteRule ^l/([0-9]+)$ /view.php?id=$1 RewriteRule ^([0-9]+).jpg$ /view.php?id=$1&t=1 #Generic rewrites. RewriteRule ^faq$ /faq.php RewriteRule ^popular$ /stats.php RewriteRule ^rapporter/([0-9]+)$ /report.php?bilde=$1 RewriteRule ^files/.*$ / [R=301]