Forum Moderators: phranque
I am using mod_rewrite for my site and will be using dashes in the page names instead of spaces. So the URLS should look like this
http://www.example.com/What-to-do-in-a-fire-45.php
I want specifically to only allow the dashes and the letters in one htaccess string (I have my reasons for not using (.*). I am thinking something like [a-zA-Z-].
Is there a way?
Thanks in advance
what about the numerics?
maybe you want a pattern more like:
([a-zA-Z]+-)+[0-9]+\.php$
which means:
at least one alphabetic and a dash, one or more times, followed by one or more numerics, ending in ".php".