Redirect home page to affiliate link, inner page normal

1 replies
Guys, I need some help here.

I have 1 domain but wanna redirect it to 2 separate landing pages

main domain: mydomain.com needs to be redirected to a clickbank offer affiliate link

while the inner link e.g. mydomain.com/more/ needs to be redirected to a page hosted in there so people got some content

how to do this guys?
#affiliate #home #link #normal #page #redirect
Avatar of Unregistered
  • Profile picture of the author Eric Michalsen
    You can do these with htaccess redirect rules if your server is using apache, but probably the easiest is index.php in the root of the site, and an index.php in the directory /more/

    respectively:

    index.php
    PHP Code:
    <?php
    header
    ("HTTP/1.1 301 Moved Permanently"); 
    header("Location: https://SOMEPLACE.DOMAIN"); 
    exit();
    and more/index.php

    PHP Code:
    <?php
    header
    ("HTTP/1.1 301 Moved Permanently"); 
    header("Location: https://SOMEPLACEELSE.DOMAIN");
    exit();
    I am working off an assumption that your webserver will run PHP.
    {{ DiscussionBoard.errors[11196256].message }}

Trending Topics