Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-31-2012, 10:27 AM   PM User | #1
DavidDutch
New to the CF scene

 
Join Date: May 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
DavidDutch is an unknown quantity at this point
htaccess for passing Google gclid parameters

Hi Guys,

Could you please take a look at my currect htaccess configuration, and tell me what to do that the glcid parameter of google analytics will me accepted.

Code:
RewriteEngine On

RewriteCond %{HTTP_HOST} ^mydomain\.nl [NC]
RewriteRule ^(.*)$ http://www.mydomain.nl/$1 [L,R=301] 

RewriteCond %{HTTP_HOST} ^mydomain\.com [NC]
RewriteRule ^(.*)$ http://www.mydomain.nl/$1 [L,R=301] 

RewriteCond %{HTTP_HOST} ^www.mydomain\.com [NC]
RewriteRule ^(.*)$ http://www.mydomain.nl/$1 [L,R=301] 

RewriteRule ^eleonora http://www.mydomain.nl/woonkamers/landelijk-woonkamers [NC,R=301,L]
RewriteRule ^bankstellen http://www.mydomain.nl/banken/bankstellen [NC,R=301,L]
RewriteRule ^p/1/1043/mo61-cg38/woonprogramma-bruges http://www.mydomain.nl/woonkamers/meubelset/woonkamerset-bruges/11778 [NC,R=301,L]

RewriteCond %{REQUEST_URI} !^$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]

DirectoryIndex index.htm index.html index.php default.php

php_value upload_max_filesize 20M
php_value max_execution_time 1000
php_flag display_errors on
php_value memory_limit 256M

Redirect 301 /home/kasten http://www.mydomain.nl
Redirect 301 /meubels_online_bestellen http://www.mydomain.nl/blog/80/meubels-online-bestellen
DavidDutch is offline   Reply With Quote
Old 06-04-2012, 02:12 PM   PM User | #2
DavidDutch
New to the CF scene

 
Join Date: May 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
DavidDutch is an unknown quantity at this point
Is there nobody who could help me?

DavidDutch is offline   Reply With Quote
Old 06-11-2012, 07:31 PM   PM User | #3
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,635
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
I don't know anything about the google analytics. Does it just pass them via querystring? If so, just make sure you add QSA as a flag to a rewrite rule to pass the querystring off to the rewrite.
Fou-Lu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:23 AM.


Advertisement
Log in to turn off these ads.