Just starting out with mod_rewrite and have couple of books and looked at various tutorials on the web. Seems pretty straight forward. I do have an issue though which may or may not be due to my wonderful shared hosting!
As some rules seem to work and some don't and they have already misinformed me on 2 occasions I thought I'd run the rewrite rule by you guys to see if it is indeed something I am doing wrong as opposed to their setup. So rule is:
Code: Select all
RewriteEngine On
# Rewrite URLs
RewriteRule ^myurl-to-display/([a-z0-9]+)-range\.html$ /actual_url.php?var=$1 [NC, L]http:www.domain.com/myurl-to-display/ABC1234-range.html
At present this rule crashes the site and the error log states RewriteRule: bad flag delimiters
Can any one confirm if this is correct or not.
Many Thanks