Peekay wrote:
You could try creating an .htaccess file in your web root containing a command that uses the Apache web server's 'mod-rewrite' feature. Re-write gets the urlencoded variables and uses regex to declare a condition (when...) and a rule (do this...) They are commonly used to turn dynamic URLs into static ones, e.g.:RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.yourdomain.com
RewriteRule ^index.php$ /index.htm [r=301,L]
They are good fun... meaning, I haven't a clue how to write one from scratch. Lots of info online if you search for mod rewrite.
Djiman wrote:
...
If one day by mistake or by curiosity you click the banner at home on your computer, then there will be little risak of being banned. the IP or whatever will be different.
..
Mithrandir wrote:
My Google ads have already generated $0.14 in only one month. By the end of the year, I will have enough for a pack of cigarettes.
(No, I am not impressed with Google's payment policies)
vaughan wrote:
that should work..
you'll have to edit mainfile.php to make sure the actual Paths are correct though, and maybe possibly the db usernames/passwords etc. then clear templates_c & cache folders.
other than the above, you should be fine..
// redirect to avoid double content
if(strpos(getenv('REQUEST_URI'), '/index.php?lang=nl') === 0)
{
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.yourdomain.com/nl/");
}
elseif(strpos(getenv('REQUEST_URI'), '/index.php?lang=en') === 0)
{
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.yourdomain.com/");
}
elseif(strpos(getenv('REQUEST_URI'), '/index.php') === 0)
{
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.yourdomain.com/");
}