943,752 Members | Top Members by Rank

Jun 14th, 2009
0

Redirect with SOME Querystring Parameters Maintained?

Expand Post »
I am trying to do a Redirect with SOME Querystring Parameters Maintained. I already know how to do a redirect with ALL parameters maintained, or with NO parameters maintained, but in this particular case, i need only ONE of them dropped.

For example, my old links for my old system were something like:
http://linuxintro.com/?a=Article_Pag...d=900072752405

But now they are like this:
http://linuxintro.com/?a=WCMS_Page&id=900072752405

So i need to drop the "a" parameter, but keep the "id" parameter, so that i know which article to display.
Thanx
Last edited by AlexGrim; Jun 14th, 2009 at 2:11 am.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
AlexGrim is offline Offline
53 posts
since Sep 2008
Jun 14th, 2009
0

Re: Redirect with SOME Querystring Parameters Maintained?

Solved:

RewriteCond %{QUERY_STRING} a=Article_Page_Display&id=(.*) [NC]
RewriteRule ^(.*)$ http://LinuxIntro.com/\?a=WCMS_Page&id=%1 [R=301]
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
AlexGrim is offline Offline
53 posts
since Sep 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Servers and Apache Forum Timeline: Jboss Clustering over TCP
Next Thread in Linux Servers and Apache Forum Timeline: Why Apache is not using all the available resources ?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC