Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Help On URL Rewrites |
|
Author |
|
jponnusamy
Joined: 30 May 2016 Posts: 12 Location: Qatar, Doha
|
Posted: Sun 07 Aug '16 12:06 Post subject: Help On URL Rewrites |
|
|
Hi,
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: | 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 |
|
Back to top |
|
mraddi
Joined: 27 Jun 2016 Posts: 152 Location: Schömberg, Baden-Württemberg, Germany
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Wed 10 Aug '16 11:27 Post subject: |
|
|
Just remove the [R] at your rewrite rule. |
|
Back to top |
|
|
|
|
|
|