Solved

Apache mod_rewrite question - Round 2

Posted on 2004-08-19
8
161 Views
Last Modified: 2010-03-04
0
Comment
Question by:MAVERICK
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

 
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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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). #…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Suggested Courses

751 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