Here's A Neat Dynamic Landing Page Keyword "Hack"
- SEO |
After trying to figure this out for hours I thought I'd share
what I learned, just in case someone needs the info now or later.
If you're trying to create landing pages that pass keywords onto
them, then you may end up with a crazy URL string like this:
http:// www. MyDomain .com/landing-page.html?base=Washington-DC&combo=Dating-Advice&result=Washington-DC-Dating-Advice
If you want to take your "Base" "Combo" or "Result" variables and pass them to the page, then they'll probably look like this:
Washington-DC Dating-Advice
Or
Washington-DC-Dating-Advice
The problem?
They have hyphens, and that looks weird for landing pages.
So how do you get rid of the hyphens?
With this little code here:
<?php echo str_replace("-", " ", $_GET['result'])?>
(Replace 'result' with whatever variable/keyword you want to pass)
That will get rid of the hyphens.
Also, if you want to get rid of the capital letters and the hyphens, you can use this code:
<?php $result1 = str_replace("-", " ", $_GET['result']); echo strtolower($result1)?>
The only trick with that one is you are creating a new variable to pass the information to.
So you need to keep that "1" after the first and last 'result'.
Kind of confusing.
But I hope it's helpful to someone.
See ya,
-Sean
Twitter Buddy
Summer Jobs for Teachers
[WSO] $8 AutoBlogging and Auto Revenue streams Complete
To know more information check with this------>http://www.putonyourgoggles.com/blog...-on-the-loose/