Apache Server configuration support - Re: .htaccess - How can I pass our search keywords (e.g. from GoogleAds) past .htacces

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > November 2004 > Re: .htaccess - How can I pass our search keywords (e.g. from GoogleAds) past .htacces





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: .htaccess - How can I pass our search keywords (e.g. from GoogleAds) past .htacces
Edward Alfert

2004-11-24, 6:29 pm

"Shiperton Henethe" <shiphen@yahoo.com> wrote in
news:41a502ab$0$6095$afc38c87@news.easynet.co.uk:

>
> Hi
>
> Is it possible to somehow send the keyword phrase used (e.g. on
> GoogleAds) to our back end if we are using .htaccess URLs ?!
>
> The problem is that we run a new auction each month,
> so each month the URLs all move.
> And then we have to re-submit all the URLs to each PPC search engine
>
> One way around is of course to link to an ".htaccess" URL
> and simply edit our ".htaccess" file each month so that it
> points to the all the latest live URLs.
>
> Is there some cunning way we can pass parameters to the
> .htaccess file so that it passes them on?
>
> e.g.
> if the user searched on google for "plasma tv auction"
> we might have specified the URL
> www.mydomain.com/htaccess-dir/myfil...asma_tv_auction
> where our ".htaccess" file lived in the location:
> www.mydomain.com/htaccess-dir
>
> With thanks
>
>
> Ship
> Shiperton Henethe


Not guaranteed to work, but try:

RewriteCond %{REQUEST_URI} ^/myfile\.html
RewriteRule ^(.*)$ /myrealfile.html?page=$1 [L]

Then have your backend parse the variable "page" for everything after the ?

--
Edward Alfert
http://www.rootmode.com/
Multiple Domain Hosting and Reseller Hosting Plans
Promotional Code (Recurring $5/month Discount): newsgroup

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com