Redirect all links on a webpage to another URL (Not Page Redirect) - HELP!

Discussion in 'Site & Server Administration' started by finqoo, May 29, 2010.

  1. #1
    Hello,

    I have a webpage, lets call it cars.php

    on that webpage I have a bunch of links, for example:

    ford.php
    vauxhall.php
    mercedes.php
    citreon.php

    What I would like to do is redirect any click on any one of those links to a totally different url, let's call it sales.php

    It's not possible to change the linking structure manually as their are far too many links - over 100 per page and 20+ pages.

    What is the best way to do this and what is the code? .htaccess, Mod_rewrite?
    help!
     
    finqoo, May 29, 2010 IP