Need a new web host or having a problem with a script? Tips and advice on the best way to design, build and maintain your most valuable asset - your website!

Please Help a Newbie with Redirects

billydsp
 
Posts: 8
Joined: 22 Dec 10
Location: United States
Trust:

Please Help a Newbie with Redirects

Hello I am new to affiliate marketing and website building and I don't have much experience writing code either.

Not too long ago there was a newsletter about Redirects and using them to hide ugly affiliate links which I thought would be helpful since my links are ugly looking.

I followed the steps in the newsletter and video (http://www.affilorama.com/site-building ... -redirects)
here on affilorama to the letter but it's not working for me.

When I first wrote the little php snippet of code my links worked, but when you held the cursor over the link on my website my ugly affiliate link was still visible and I don't want it to be which I thought was the purpose of writing this little bit of code and creating a redirect.

Then when I edited the link on my website to the "recommends" folder as the video suggests the link didn't work anymore.

Can anyone help?

Sorry if this doesn't make any sense but I really don't know how to explain it any better since as I said I'm a newbie.

Thanks
 

  • 0
saltaan
 
Posts: 7
Joined: 04 Nov 09
Location: Estonia
Trust:

If you're using Wordpress, you can try a couple of free plugins like Simple Cloaker or Pretty Link Lite:
http://wordpress.org/extend/plugins/pretty-link/

It does the job and gives you some statistics as well.
 

  • 0
Site Admin
michellerana
 
Posts: 2131
Joined: 05 May 09
Location: Philippines
Trust:

If you're not using Affilotheme, you could use the GoCodes plugin. It works similarly with the Affiliate Redirect component of the Affilotheme.
 

  • 0
Want a step-by-step training program in affiliate marketing? Affiloblueprint is a "hand-holding" course that will will show you how to build a site, drive traffic to it, and monetize it.

Go to this link to start building your profitable affiliate sites now!
http://www.affilorama.com/affiloblueprint/v3
 
Thabacus
 
Posts: 3
Joined: 24 Jan 10
Location: Great Britain
Trust:

Another method you may want to consider is the meta refresh. It looks like this:

<meta HTTP-EQUIV="REFRESH" content="0;
url=http://www.youraffiliatelink.goes.here.com">

Put it on a blank page (make sure there is no other code on the page). Then you can send your traffic to your page, and your page will redirect to the affiliate link.

You may want to add a no index meta tag to the page so the search engines don't index that page.
 

  • 0
David
www.withu.co.uk
 
PremiumMember
covenantguy
 
Posts: 134
Joined: 08 Feb 10
Location: New Zealand
Trust:

Can anyone tell me how I redirect a post to a page? (It's not one of my AB themed sites, but an earlier WP site), I want an early post I wrote to actually be the home page for the site instead of "most recent post first" as it is at the moment.. I have the Redirection plugin installed. Problem. When I copied the post on to a page and hit "Publish", it created this url: http://mydomain.com/500-2.

I have no idea where the "500" came from. Unfortunately I cannot create a sticky post with the WP theme I am using but it looks like I can create a static page-hence my effort to create the said home page above.

Would appreciate any ideas
 

  • 0
http://johnreason.com/recommends.php?linkid=Affiloblueprint
Build a Successful Website in 12 Weeks.
 
Site Admin
michellerana
 
Posts: 2131
Joined: 05 May 09
Location: Philippines
Trust:

Our technical staff said if you have access to the .htaccess file then you can add a 301 redirect with this format:

Redirect 301 /oldpost http://www.mydomain.com/newpage

"Oldpost" there is the permalink of the post to be redirected. For example: http://www.domain.com/oldpost => http://www.domain.com/newpage

If the post to be redirected has a different format like www.domain.com/category/oldpost the redirect should be something like this:

Redirect 301 /category/oldpost http://www.domain.com/newpage

--OR--

Redirect 301 /category/oldpost http://www.domain.com/category/newpage

Hope that helps! :)
 

  • 0
Want a step-by-step training program in affiliate marketing? Affiloblueprint is a "hand-holding" course that will will show you how to build a site, drive traffic to it, and monetize it.

Go to this link to start building your profitable affiliate sites now!
http://www.affilorama.com/affiloblueprint/v3
 
PremiumMember
covenantguy
 
Posts: 134
Joined: 08 Feb 10
Location: New Zealand
Trust:

Hi Michelle

Thanks. I have no idea what an hta ccess file is but I will forward this info to the person hosting my site
 

  • 0
http://johnreason.com/recommends.php?linkid=Affiloblueprint
Build a Successful Website in 12 Weeks.
 
PremiumMember
covenantguy
 
Posts: 134
Joined: 08 Feb 10
Location: New Zealand
Trust:

michellerana wrote:Our technical staff said if you have access to the .htaccess file then you can add a 301 redirect with this format:

Redirect 301 /oldpost http://www.mydomain.com/newpage
.......... --OR--

Redirect 301 /category/oldpost http://www.domain.com/category/newpage

Hope that helps! :)


Hi Michelle
My friend who host my website ahs teh following info for my webnsite and has a question for the technical team:

"This is what is currently in your .htaccess file for (my domain):

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Can you confirm with your forum what exactly must go in here and where please.?"
 

  • 0
http://johnreason.com/recommends.php?linkid=Affiloblueprint
Build a Successful Website in 12 Weeks.
 
Site Admin
mikeantiga
 
Posts: 601
Joined: 28 Mar 10
Location: Philippines
Trust:

Hi,

You can add the redirect command that Michelle posted above right after the # END WordPress line

It should go like this:

Code: Select all
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Redirect 301 /oldpost http://www.mydomain.com/newpage


Just be careful though, any incorrect syntax or invalid character would result to a site-wide error! If you're not sure how to do this, you can contact your web hosting support or email us at support.
 

  • 0
Want lessons on Affiliate Marketing, SEO and Content Creation? Get them here for FREE:
http://www.affilorama.com/lessons