| | |
Redirect with SOME Querystring Parameters Maintained?
Thread Solved
![]() |
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
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.
Solved:
RewriteCond %{QUERY_STRING} a=Article_Page_Display&id=(.*) [NC]
RewriteRule ^(.*)$ http://LinuxIntro.com/\?a=WCMS_Page&id=%1 [R=301]
RewriteCond %{QUERY_STRING} a=Article_Page_Display&id=(.*) [NC]
RewriteRule ^(.*)$ http://LinuxIntro.com/\?a=WCMS_Page&id=%1 [R=301]
![]() |
Similar Threads
- HTTP POST request from PHP (PHP)
- Querystring values not matching with the SQL statement (ASP)
- ASP vbscript recordset paging headache (ASP)
- I need examples of website admin pages in asp (ASP)
- how to store and retrieve data from cookies (ASP.NET)
- IE Explorer/Search Engine problems! (fake/redirect search results;dysfunctional sites (Viruses, Spyware and other Nasties)
- Help with Roles Stored in SQL database (ASP.NET)
- redirect doesn't redirect without refresh (PHP)
- Intelligent Redirect (Computer Science)
- html table to .csv (HTML and CSS)
Other Threads in the Linux Servers and Apache Forum
- Previous Thread: Jboss Clustering over TCP
- Next Thread: Why Apache is not using all the available resources ?
| Thread Tools | Search this Thread |
.net apache asus bbc bluegene centos cisco citrix cloud cloudcomputing datacenters debian dell desktops development distributions distros drivers economy eeepc energy enterprise fedora gadget gadgets gentoo gos government gpl hardware hp hyper-v ibm java jobs kindle knoppix kvm laptop laptops lawsuits licensing limo linustorvalds linux linuxfoundation linuxmagazine magazines microserver microsoft mobile mobilephones netbook netbooks news novell olpc open openmoko openoffice opensolaris opensource opensuse openvz operatingsystems os patents pc pcworld plathome politics print qumranet redhat rhel robot russia sco server servers slackware software solaris source sun supercomputer support tivo torvalds training tv ubuntu umpc unix virtualization vmware windows x86 xandros xen





