Forum Moderators: phranque
It use to be that page names on my site could not include a forward slash (/) in them. I used the following regex to block matching titles:
.*\/.*
However, now, users are able to have a forward slash if the title starts with "Title:". How can I rewrite my regex to only block matching titles that don't have Title: in front?
[^Title:].*\/.* ?
Thanks
If string contains "/"
^[^/]*/
AND If string is NOT Title:<zero or more characters not matching a slash> followed by a slash
!^Title:[^/]*/
Then block
It is not necessary in mod_rewrite regex to escape slash characters.
Jim