JL Forums

Using a redirect

0 Members and 1 Guest are viewing this topic.

Using a redirect
« on: December 07, 2016, 05:29:02 AM »
Click the image below to watch the tutorial on adding the redirect scripts.

Remember that you would buy a new domain name, set the domain up on your hosting, leave it blank and THEN do what's shown in this video. This new domain would be your "redirect" domain.

The domain you want all the traffic to go to is your "main" domain.




Here's the original script information from Jon's post:




I don't have a plugin. What I do is register a new domain, upload the .htaccess file below and the index.php file below.

.htaccess
RewriteEngine On

# If requested resource exists as a file or directory, skip next two rules
RewriteCond %{DOCUMENT_ROOT}/$1 -f [OR]
RewriteCond %{DOCUMENT_ROOT}/$1 -d
RewriteRule (.*) - [S=2]
#
# Else rewrite requests for non-existent resources to /index.php
RewriteRule (.*) /index.php?q=$1 [L] [/quote]

index.php

You can download the ready made index.php file, but be sure to put your own domain name in it!!  I've attached the file to this thread for your convenience. Look at the bottom of this thread to find the download.

Where it says

Quote
$domain = "yourdomain.com";


be sure to put your own domain name - no http or anything like that, just the basic domain name as shown in the example.

That will let you redirect from one page on the redirect domain to the same page on the final destination.

So, for example, if you want to send traffic to MyBrand.com from MyRedirect.com, with those two files uploaded to MyRedirect.com, if you browse to this URL:

Quote
http://myredirect.com/some/page/location.html


It will redirect you to:

Quote
http://mybrand.com/some/page/location.html


That way you can load up all of the target URLs you're using in the Pinterest account pinning to your brand domain and just search/replace the domain name with the redirect domain. Paste the redirect domain URLs into the new pin job(s) of a second Pinterest account and voila. :)

Jon





« Last Edit: December 14, 2016, 09:06:28 AM by Amin Motin »