I'm attempting to generate dynamic 'pretty URLs' via .htaccess so that http://mysite.com/episode.php?episode=1
will become http://mysite.com/1
, however obviously I want this to be applicable to all episode numbers between a potential range of 1 - 999. I have the following, however I'm getting a 503 error thrown when I load up my .htaccess file:
Options -Multiviews
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^mysite\.com$
RewriteRule ^(.*) http://mysite.com/$1 [R=301,L]
RewriteRule ^/episode/\(\?:0|\[1-9\]\\d{0,2}\)$ //episode.php?episode=(?:0|[1-9]\d{0,2}) [L]
I can't seem to work out where I'm going wrong and not really understanding why a 503 is being thrown.