Hello!
I have been attempting to rectify what appears to be a common issue with Google Adwords Campaigns that are pointed towards a domain’s primary landing page in EE.
I know the fix is in .HTACCESS. In fact, I have implemented the fix outlined in thsi post: http://ellislab.com/forums/viewthread/85978/P18/#527314 - with no success.
I am not the Author of the original .HTACCESS. Can someone who is better versed in EE and .HTACCESS configuration have a look at what is currently in my client’s .HTACCESS file and comment accordingly?
Here it is:
RewriteEngine On
RewriteBase /
# Catch any Google campaigns directed to the home page
RewriteCond %{REQUEST_URI} ^/$
RewriteCond %{QUERY_STRING} ^(gclid=.*)
RewriteRule ^(.*)$ /index.php/ [L,PT]
# Everything else to the EE controller
RewriteCond %{QUERY_STRING} ^(css=.*)$ [NC]
RewriteRule ^(.*)$ /index.php?/%1 [L]
RewriteCond $1 !^(b |images|uploads|scripts|system|themes|favicon/.ico|robots .txt|index.php) [NC]
RewriteRule ^(.*) /index.php?/$1 [L]
## 301 Redirects
# 301 Redirect 1
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^about-us/yegendorf-blog$ /blog/? [R=301,NE,NC,L]
All and and help will be greatly appreciated!
😊