homepage Welcome to WebmasterWorld Guest from 23.22.179.210
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
Htaccess problem with rewriting the gclid querystring
superguppie




msg:3898399
 8:29 am on Apr 23, 2009 (gmt 0)

I have problems with rewriting for the gclid querystring.
This is what I want:

http://www.example.com/?gclid=abcdetc
should be:
http://www.example.com/redirect,?gclid=abcdetc

http://www.example.com/page/?gclid=abcdetc
should be:
http://www.example.com/page/redirect,?gclid=abcdetc

http://www.example.com/page/subpage/?gclid=abcdetc
should be:
http://www.example.com/page/subpage/redirect,?gclid=abcdetc

This is a part of my htaccess:

## search for query string "gclid"
RewriteCond %{QUERY_STRING} ^(gclid=.*)$
## ignore url's with "redirect,"
RewriteCond %{REQUEST_URI} !(.*?)redirect,(.*?)$

... a redirect rule over here ? ...

## get mvc index to build site
RewriteRule (.*) /html/$1 [L]

Please tell me how to solve this.

[edited by: encyclo at 2:20 am (utc) on June 5, 2009]
[edit reason] switched to example.com [/edit]

 

wilderness




msg:3898779
 4:51 pm on Apr 23, 2009 (gmt 0)

There are frequent requests in the Apache Server Forum [webmasterworld.com].

A search of question+mark at Webmaster World [google.com] provided many references.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved