301 Redirects stopped working, Cloaked Affiliate redirect links

Home Forums BulletProof Security Pro 301 Redirects stopped working, Cloaked Affiliate redirect links

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14669
    AITpro Admin
    Keymaster

    Email Question:

    I have been using BPS Pro plugin since very long, But today for some reason I need to install and activate plugin. I did that , download latest setup 8.3 and the done successful activation by following video tutorial. But then I check that all 301 redirect stop working , this is big issue to me , Will you please help.  This is regarding more technical stuff, will you please configure that for me.

    Regards,
    Kevin

    #14673
    AITpro Admin
    Keymaster

    General Help Info about how and where to add htaccess redirect code

    htaccess Redirect code Help Reference Topic:  http://forum.ait-pro.com/forums/topic/htaccess-redirect-code-where-do-i-add-redirect-htaccess-code/

    1. htaccess RedirectMatch 301 code is added to this BPS Custom Code text box: CUSTOM CODE BOTTOM HOTLINKING/FORBID COMMENT SPAMMERS/BLOCK BOTS/BLOCK IP/REDIRECT CODE: Add miscellaneous code here
    2. After adding your RedirectMatch htaccess code to BPS Custom Code, click the Save Root Custom Code button.
    3. Go to the BPS Security Modes page and click the Root Folder BulletProof Mode Activate button.

    If you need additional assistance with creating your .htaccess RedirectMatch code please either reply to the email or post the answers to these questions in this Forum Topic.

    How and where were you previously doing 301 redirects – with .htaccess redirect code?  In your host control panel?  If you were using htaccess code to do the redirects, do you have a copy of the .htaccess redirect code?

    #14675
    AITpro Admin
    Keymaster

    Issue/Problem was resolved via email:

    Email Reply:
    This is correct One.
    Look at the below example ::

    Source link::https://example.com/go-remedyforpmdd
    End link::https://abcde.hop.clickbank.net/
    
    https://example.com/go-remedyforpmdd Redirect to the
    End link::https://abcde.hop.clickbank.net/
    
    RewriteCond %{HTTP_HOST} ^example\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.example\.com$
    RewriteRule ^go\-remedyforpmdd\/?(.*)$ "https\:\/\/abcde\.hop\.clickbank\.net\/$1" [R=301,L]

    Solution:
    The redirect code that was being used was overly complex.  The goal was to create cloaked affiliate redirect links.  This simple redirect code accomplishes the desired result.

    # If trailing forward slashes ARE used in your cloaked affiliate redirect links/URL's.
    RedirectMatch 301 ^/go-remedyforpmdd/$ https://abcde.hop.clickbank.net/
    
    # If trailing forward slashes are NOT used in your cloaked affiliate redirect links/URL's.
    RedirectMatch 301 ^/go-remedyforpmdd$ https://abcde.hop.clickbank.net/

    The URL/link code that would be used, using this example cloaked affiliate htaccess redirect link code (using the trailing forward slash redirect htaccess code) above would be:

    # For a Text URL/link
    <a href="https://example.com/go-remedyforpmdd/" target="_blank"></a>
    
    # For an Image URL/link
    <a href="https://example.com/go-remedyforpmdd/" target="_blank"><img src="https://www.link-to-an-image-file.com/wp-content/uploads/2014/4/image-file-name.jpg" alt="some alt text here" border="0" /></a>
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.