On 6/7/05, Michael Bellears <[EMAIL PROTECTED]> wrote:
> Wondering if someone can please assist with the following two
> RedirectMatch regex's (My regex skills are zilch!)
> 
> RedirectMatch /main.cfm?=page&content&id=946
> http://www.domain.com.au/privacy.html
> RedirectMatch /main.cfm?page=unsubscribe
> http://www.domain.com.au/unsubscribe/index.html
> 
> The ".", "?" , "&" + "=" signs probably need escape char in front of
> them, but every combo I've tried fails miserably!

Using mod_alias to deal with the query string is not, in general, a good idea.

Try mod_rewrite instead.  For your second Redirect, it would look
something like this:
RewriteEngine On
RewriteCond %{QUERY_STRING} ^page=unsubscribe$
RewriteRule ^/main.cfm http://www.domain.com.au/unsubscribe/index.html [R]

But be sure to consult the mod_rewrite docs.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to