Help with ?gclid
7 posts
• Page 1 of 1
Help with ?gclid
Hi,
At this point I'm using the following rule for the use of AdWords-autotagging:
RewriteRule ^/([?gclid]*)$ / [NC, L]
So "http://www.mysite.com/?gclid=TeSter-123" is working fine.
Now I want to add a new level like e.g.
"http://www.mysite.com/level/?gclid=TeSter-123"
With the rule above css and images cannot be invoked properly.
Thanks for your help in advance!
At this point I'm using the following rule for the use of AdWords-autotagging:
RewriteRule ^/([?gclid]*)$ / [NC, L]
So "http://www.mysite.com/?gclid=TeSter-123" is working fine.
Now I want to add a new level like e.g.
"http://www.mysite.com/level/?gclid=TeSter-123"
With the rule above css and images cannot be invoked properly.
Thanks for your help in advance!
Re: Help with ?gclid
Hello.
Can you please explain what is the purpose of your rule (it is not obvious from the syntax itself), so I could write a new rule for you.
Can you please explain what is the purpose of your rule (it is not obvious from the syntax itself), so I could write a new rule for you.
Re: Help with ?gclid
The purpose of my rule is that I want to add a level e.g.
"http://www.mysite.com/?gclid=TeSter-123"
becomes
"http://www.mysite.com/level1/?gclid=TeSter-123"
In the last case it cannot find pictures and css files
"http://www.mysite.com/?gclid=TeSter-123"
becomes
"http://www.mysite.com/level1/?gclid=TeSter-123"
In the last case it cannot find pictures and css files
Re: Help with ?gclid
The rule adds "level"?
I can tell you what your rule actually does according to syntax: it matches all requests started with '/' and followed by any number of either '?'s, 'g's, 'c's, etc. and internally rewrites these requests to the homepage. Seems quite senseless to me. So I am asking you to explain what you are actually trying to reach because nither from your message nor from the rule syntax itself can I suppose what is the purpose of the rule.
I can tell you what your rule actually does according to syntax: it matches all requests started with '/' and followed by any number of either '?'s, 'g's, 'c's, etc. and internally rewrites these requests to the homepage. Seems quite senseless to me. So I am asking you to explain what you are actually trying to reach because nither from your message nor from the rule syntax itself can I suppose what is the purpose of the rule.
Re: Help with ?gclid
I can show you in an example.
If you use http://www.prijsprinter.nl/?gclid=TeSter-123 everything work fine.
I want to expand the URL to
http://www.prijsprinter.nl/home_perfect ... TeSter-123
You will see that pictures an css cannot be found
If you use http://www.prijsprinter.nl/?gclid=TeSter-123 everything work fine.
I want to expand the URL to
http://www.prijsprinter.nl/home_perfect ... TeSter-123
You will see that pictures an css cannot be found
Re: Help with ?gclid
The rule you are pointing has nothing to do with your css files, if you remove it files will still be missing. CSS files don't work because your page has them linked using relative links, therefore, browser is looking for files in http://www.prijsprinter.nl/home_perfect/css... Use absolute or root-relative links.
Re: Help with ?gclid
Hello Yaroslav,
I've made the links root-relative. This worked for me.
Thanks for your help!
Regards
I've made the links root-relative. This worked for me.
Thanks for your help!
Regards
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 19 guests