RewriteRule and Trailing Slashes
Just a quick post today, i needed to redirect a URL with and without a trailing slash to the same destination, but didn’t want to create two separate rules, so I did some searching and found that it is very simple. RewriteCond %{HTTP_HOST} ^.*$ RewriteRule ^video(/)?$ http://video.somedomain.com [R=301,L] The (/)? is the key to matching [...]

