I ran into a dilemma with a website I created with a CMS and PHP. My customer went to an advertising firm and they started doing Goode Adword marketing. They started using the marketing in adds, but when they appended the string provided by Google to the URL of the pages on the website, it blew away my website. The string is provided as follows:
/?keyword=%2Bkuecker%20%2Blogistics&gclid=CIL55sDS9NMCFdC4wAodApULLQ
What I found is that it completely disoriented my path names. I had to go into each link of .css, .js, etc. and make the path relative. I also put the main menu, side menus, footer, header in separate PHP files and pull them into each page. I had to go into each of those and make each link a full path URL.
I got it all working, but, I also use PHP on some of my simple websites. I put the menu, header, footer, etc. in separate files to streamline website updates. The Google Ad string has the same effect on those sites.
So, I'm looking for advice. What do I need to do to avoid this?
http://advantageelectricks.com/projects.php Example page without string.
http://advantageelectricks.com/projects.php/?keyword=%2Bkuecker%20%2Blogistics&gclid=CIL55sDS9NMCFdC4wAodApULLQ Example page with the string.
Thanks in advance.