Solved

Apache mod_rewrite question - Round 2

Posted on 2004-08-19
8
156 Views
Last Modified: 2010-03-04
0
Comment
Question by:MAVERICK
  • 4
8 Comments
 
LVL 1

Author Comment

by:MAVERICK
ID: 11846688
Hi Everyone,

I used the following rule which half works - i still can't pass the msg part of the query string.

RewriteCond %{QUERY_STRING} name=(.*)
RewriteRule ^signuperror.htm /page.php?p=signuperror&name=%1&msg=1 [P,L]
RewriteCond %{QUERY_STRING} email=(.*)
RewriteRule ^signuperror.htm /page.php?p=signuperror&email=%1&msg=2 [P,L]

Cheers!
Maverick
0
 
LVL 15

Expert Comment

by:samri
ID: 11853894
Maverick,

I am not an expert in mod_rewrite, but the "%1" looks strange... isn't it suppose to be $1 ?
0
 
LVL 1

Author Comment

by:MAVERICK
ID: 11854132
Hi Samri,

Apparently not - $1 refers to terms in the URL not the query string.

Here is the 'round 1' question
http://www.experts-exchange.com/Web/Web_Servers/Apache/Q_21002207.html

Cheers!
-John
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 51

Accepted Solution

by:
ahoffmann earned 125 total points
ID: 11855527
RewriteCond %{QUERY_STRING} name=(.*)
RewriteRule ^/signuperror.htm\?(.*)$ /page.php?$1
0
 
LVL 1

Author Comment

by:MAVERICK
ID: 12145405
Sorry about the delay

Will confirm ahoffmans' suggestion and get back to you ASAP

Maverick
0
 
LVL 1

Author Comment

by:MAVERICK
ID: 12343478
I've been having unrelated issues on my development server & time contraints that prevented me from fully evaluating ahoffman's solution. I believe it was basically correct, there was just some further issues that prevented me from fully perfecting the rewrite rules required (& why i didn't originally accept the answer)

I decided to give ahoffam the points and close the question.

Maverick

0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now