TimUkaj
05-20-2007, 03:30 PM
Hey guys. I've made a little script you could use on your landing pages. It's quite simple so it won't be a pain in the ass for the non-programmers to install.
Before we continue I want you to first read this thread: http://forum.clickconsultants.com/showthread.php?p=4547.
So now you know the basic idea with this script. If you don't here's a short summary. It will make the search engines think you have huge website with several pages. And we all know that search engines love websites with many pages. An example. Someone searches for payday loans. He sees your ad in the results and clicks on it. Instead of just entering www.your-landing-page.com he/she will now get redirected to www.your-landing-page.com/payday-loans.php. Got it?
How to install it.
1. Copy the following code into your htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
2. Copy the following code into your index file (main landing page file index.html/php etc). It should be on line #1, before the <html> tag:
<?php
if ($OVKEY = $_GET['OVKEY']) {
$pattern = '/\s/';
$replacement = '-';
$optimized_OVKEY = preg_replace($pattern, $replacement, $OVKEY);
header('location: http://YOUR-LANINDG-PAGE.COM/'.$optimized_OVKEY.'.php');
}
?>
3. Edit where it says "http://YOUR-LANINDG-PAGE.COM" to whatever your domain is. It's even possible for you to change the extension to html. Just change the "php" to "html" in the header.
4. You're set to go :). Try it out by typing "www.your-landing-page.com?OVKEY=Some Keyword" in your browser.
Feel free to ask me anything :). I will be adding new features along the road. Hope you enjoy it.
Peace!
Before we continue I want you to first read this thread: http://forum.clickconsultants.com/showthread.php?p=4547.
So now you know the basic idea with this script. If you don't here's a short summary. It will make the search engines think you have huge website with several pages. And we all know that search engines love websites with many pages. An example. Someone searches for payday loans. He sees your ad in the results and clicks on it. Instead of just entering www.your-landing-page.com he/she will now get redirected to www.your-landing-page.com/payday-loans.php. Got it?
How to install it.
1. Copy the following code into your htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
2. Copy the following code into your index file (main landing page file index.html/php etc). It should be on line #1, before the <html> tag:
<?php
if ($OVKEY = $_GET['OVKEY']) {
$pattern = '/\s/';
$replacement = '-';
$optimized_OVKEY = preg_replace($pattern, $replacement, $OVKEY);
header('location: http://YOUR-LANINDG-PAGE.COM/'.$optimized_OVKEY.'.php');
}
?>
3. Edit where it says "http://YOUR-LANINDG-PAGE.COM" to whatever your domain is. It's even possible for you to change the extension to html. Just change the "php" to "html" in the header.
4. You're set to go :). Try it out by typing "www.your-landing-page.com?OVKEY=Some Keyword" in your browser.
Feel free to ask me anything :). I will be adding new features along the road. Hope you enjoy it.
Peace!