Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Using mod ReWrite to redirect request with certain parameters.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Charles Crume  
View profile  
 More options Oct 23 2007, 5:16 pm
Newsgroups: alt.apache.configuration
From: "Charles Crume" <NOccsS...@charlescrumesoftware.com>
Date: Tue, 23 Oct 2007 17:16:21 -0400
Local: Tues, Oct 23 2007 5:16 pm
Subject: Using mod ReWrite to redirect request with certain parameters.
Hello;

I want to capture, and redirect, URLs that contain certain parameters (after
the ?). I have been reading a number of articles (web pages) on mod Rewrite,
but can't seem to get it working like I want.

For example, I want to redirect all URLs with "wxyz" in them, such as:

a.html?p1=123,p2=qwerty,wxyz=4
b.html?wxyz=def

Is what I want to do possible?

If so, can someone point me to an article (web page) or two that I can read?
(the pages I've found so far have not provided me the info I need.)

TIA.

Charles...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jim Hayter  
View profile  
 More options Oct 23 2007, 6:33 pm
Newsgroups: alt.apache.configuration
From: Jim Hayter <see.reply...@nowhere.invalid>
Date: Tue, 23 Oct 2007 18:33:45 -0400
Local: Tues, Oct 23 2007 6:33 pm
Subject: Re: Using mod ReWrite to redirect request with certain parameters.

This can be done using mod_rewrite.  The parameters after the ? are
known as the Query_string.  Rewrite Rules can be written that are
conditional on query_string matching a regular expression:

RewriteCond %{QUERY_STRING} wxyz
RewriteRule (.*) <redirect URL>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charles Crume  
View profile  
 More options Oct 24 2007, 11:28 pm
Newsgroups: alt.apache.configuration
From: "Charles Crume" <NOccsS...@charlescrumesoftware.com>
Date: Wed, 24 Oct 2007 23:28:18 -0400
Local: Wed, Oct 24 2007 11:28 pm
Subject: Re: Using mod ReWrite to redirect request with certain parameters.

"Jim Hayter" <see.reply...@nowhere.invalid> wrote in message

news:13hstkiev3p6b41@news.supernews.com...

[snip]

> This can be done using mod_rewrite.  The parameters after the ? are known
> as the Query_string.  Rewrite Rules can be written that are conditional on
> query_string matching a regular expression:

> RewriteCond %{QUERY_STRING} wxyz
> RewriteRule (.*) <redirect URL>

Thanks Jim;

I went back and scanned all my articles -- and there in one of them is the
mention of using {QUERY_STRING}. Looks like I missed it while trying to
absorb all the other info.

Thanks again.

Charles...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google