Rewrite rule

I’m trying to rewrite view-video-999 to view-video.php?id=999 etc where 999 may be 1 or more numerics, and have tried the following rule which is not working (it gives a server error). I always get my brain in knots with rewriting. Can any kind soul help please?

RewriteRule ^view-video-([0-9]+)$ view-video.php?id=$1 [PT, L]

Apache doesn’t seem to like the space between your flags. Make it just [PT,L].

1 Like

Gee - is that all it was. Many thanks Jeff

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.