Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   PHP or HTML 301 or normal redirect (https://www.warriorforum.com/programming/543954-php-html-301-normal-redirect.html)

danb12 18th February 2012 07:07 AM

PHP or HTML 301 or normal redirect
 
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

sautaja 18th February 2012 07:24 AM

Re: PHP or HTML 301 or normal redirect
 
Since you are using wordpress, why not download plugin like pretty link or link cloaker instead of creating those html files manually?

danb12 18th February 2012 07:43 AM

Re: PHP or HTML 301 or normal redirect
 
Thanks..

All this time i didnt even know there was a plugin

LOL! - I have only started using Wordpress from Joomla!

Nochek 18th February 2012 11:02 AM

Re: PHP or HTML 301 or normal redirect
 
Quote:

Originally Posted by sautaja (Post 5648897)
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.

bbleo 20th February 2012 08:01 AM

Re: PHP or HTML 301 or normal redirect
 
permanent redirect will be good by editing .htaccess:

Quote:

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



All times are GMT -6. The time now is 12:32 PM.