I made below rewriteRule to redirect URL from http://cmspweb1.com/sites/en_US/about/newsroom/2015/4 to http://cmspweb1.com/sites/en_US/about/newsroom?year=2015&month=4
Redirection is happening fine But we want to keep FROM URL (http://cmspweb1.com/sites/en_US/about/newsroom/2015/4) only in the Browser's Address Bar, and the Redirection should happen only Internally.
- Code: Select all
RewriteEngine On # Turn on the rewriting engine
RewriteRule /sites/en_US/about/newsroom/([0-9]+)/([0-9]+) sites/en_US/about/newsroom?year=$1&month=$2 [R]
Kindly please help me on this.
Thanks
Jayaram