I am a bit confused with a rewrite rule I am working on and would appreciate any feedback.
I have one rule that works well:
RewriteCond %{SERVER_PORT} ^10080$
RewriteRule ^.*/MyApp/index\.jsp [
example:10080...] [R=301,L]
I need another rule which says for any other resource requested redirect to an error page:
RewriteCond %{SERVER_PORT} ^10080$
RewriteRule ^.*/MyApp/.* [
example:10080...] [R=301,L]
This rule is not working and the resource is served instead of the error page. Any pointers would be greatly appreciated.
Vince