I hope I'm missing something silly.
I'm trying to redirect URLs using .htaccess on Apache 2.2 using the PHP 5.4 cartridge on OpenShift's free hosting service.
This matches the URI /permalink/a123 (note the lack of leading slash in the rule's filter pattern):
RewriteEngine On
RewriteRule permalink/a.*$ /permalink/b [R=301,L]
This does not match the URI /permalink/a123 (note the leading slash in the rule's filter pattern):
RewriteEngine On
RewriteRule /permalink/a.*$ /permalink/b [R=301,L]
So what stupid thing do I have wrong?
Thanks.