PHP or HTML 301 or normal redirect

by danb12
4 replies
Hey

So i have affiliate links on my site.

I am currently hiding them by using this HTML redirect code:
Code:
 <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.myaffiliatelink.com/">


My site is a php wp, and i have created a go folder and created a html redirect eg:
Code:
http://www.mysite.com/go/myhtmlredirect
Then I have blocked my go folder in my robots.

Is this a good was to do it?

I don't really want to use 301 redirects, and i know bots don't like other redirects so i blocked the files, and make links nofollow.

Will this make a difference?
Is this a good way to do it?

Thanks
#301 #html #normal #php #redirect #redirects
  • Profile picture of the author sautaja
    Since you are using wordpress, why not download plugin like pretty link or link cloaker instead of creating those html files manually?
    Signature
    Jomify - Free multi-channel shopping cart. Open your free store now.
    {{ DiscussionBoard.errors[5648897].message }}
    • Profile picture of the author danb12
      Thanks..

      All this time i didnt even know there was a plugin

      LOL! - I have only started using Wordpress from Joomla!
      Signature
      UK Coupon Website PR1 making £300+ per month - QUICK SALE - CHEAP SALE - CONTACT ME
      {{ DiscussionBoard.errors[5648972].message }}
    • Profile picture of the author Nochek
      Originally Posted by sautaja View Post

      Since you are using wordpress, why not download plugin like pretty link or link cloaker instead of creating those html files manually?
      Because he already did what you suggested he download, but with less code, less overhead, and now he knows how to do it.

      You can go to any of my domains on the Nochek Network and find the /go/3 (i use a number system and pull links from the database) in use. and find that since I didn't use someone elses plugin, I can port my links to hundreds of domains instead of just in one domain using a bloated plugin.

      As for the original post, that is the best practice for what your currently doing. Keeping the bots out but using php to redirect means the best SEO, safest affiliate linking, and best way to avoid ranking penalties.
      Signature
      Nochek Solutions Presents:
      The Hydrurga WSO - Rank Your Site #1 And Score Over The Penguin Updates!
      {{ DiscussionBoard.errors[5649764].message }}
  • Profile picture of the author bbleo
    permanent redirect will be good by editing .htaccess:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^example.com
    RewriteRule (.*) example234.com/$1 [R=301,L]
    {{ DiscussionBoard.errors[5661443].message }}

Trending Topics