Dit is de (complete) .htaccess die ik momenteel altijd gebruik:
Ook de regels voor shortUrl staan erin, iets verbeterd voor WB2.10 en nieuwer..
RewriteEngine On
RewriteBase /
## Set an errordocument that will be shown if one of the reserved folders are used.
ErrorDocument 404 '<h1>Page not found</h1>'
## make google_sitemap.php available as sitemap.xml
RewriteRule ^sitemap.xml$ /google_sitemap.php [L]
## rewrite to force https
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
## rewrite to include www
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
## If old url's are called directly - redirect to short url version
RewriteCond %{REQUEST_URI} !/pages/intro.php
RewriteCond %{REQUEST_URI} /pages
RewriteRule ^pages/(.*).php$ /$1/ [R=301,L]
## Send the request to the short.php for processing
RewriteCond %{REQUEST_URI} !^/(pages|admin|framework|include|languages|media|modules|account|search|temp|templates|var)/.*$
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([\/\sa-zA-Z0-9._-]+)$ short.php?_wb=$1 [QSA,L]