URL rewrite/shortening not working in Dispatcher
When I use PT or L flag, my URL shortening is not working. It only works with R flag. R flag is for URL redirecting, but I need internal rewrite. I am using apache 2.2 on Linux. I have mode_rewrite.so and mod_proxy.so in my modules directory.
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/content/dam
RewriteRule ^/(.*) /content/dam/$1 [L]
I am trying to shorten URL from
http://serverx.epga.nam.com:15100/content/dam/parts/images/22787711_Primary.jpg
to
http://serverx.epga.nam.com:15100/parts/images/22787711_Primary.jpg