How to cloak and rediretc a web address

by Chrissy Allen 2 replies

I need to cloak a web address and could do with a hand if possible.

I basically want to send people to a web address which when inputted redirects to the actual one that i want to hide.

Any help is really appreciated

Warm regards

#website design #address #cloak #rediretc #web
Avatar of Unregistered
  • Profile picture of the author RaulK
    If I understood you correctly you need to do a mod_rewrite in your .htaccess file. I needed to solve similar problem recently and this page helped me a lot: mod_rewrite, a beginner's guide (with examples)
    {{ DiscussionBoard.errors[2932369].message }}
  • Profile picture of the author h0ms
    Make a link using the following structure

    Create a directory called 'subdir' and place an htaccess file in it which contains the following:

    RewriteEngine on
    RewriteRule ^cloak$ [L,R=301]

    In addition you could also block bots from entering this subdir and discover your affiliate links by putting lines like these:

    BrowserMatchNoCase Googlebot/2.1 bot1
    Order Deny,Allow
    Deny from env=bot1

    BrowserMatchNoCase Yahoo! Slurp bot2
    Order Deny,Allow
    Deny from env=bot2


    Also edit your robots.txt file and add the following:

    User-agent: *

    -replace 'subdir' with the name of your actual subdir.
    -replace 'cloak' with any word that suits you best.
    -replace '' with your affiliate link.
    {{ DiscussionBoard.errors[3896865].message }}
Avatar of Unregistered

Trending Topics