1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

htaccess rewrite...

Discussion in 'Off Topic' started by Martyn, Jan 4, 2016.

  1. Martyn

    Martyn Active Member

    this isn't for xenforo so unsure where to put it >.<

    we use an affiliate system on our site an the url goes to


    and this one links to products

    is it possible to have them like this?

    I know its possible but im just so usless at this stuff I've been trying all day!

    I thank anyone in advance who trys to help :D
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    RewriteEngine On
    RewriteRule ^affiliate/([0-9]+)/([0-9]+)$ aff.php?aff=$1&pid=$2 [L]
    That should allow the friendly URL to call on the non-friendly one. Visit the friendly URL in your browser to see if it works.
    AdamD, Martyn and Daniel Hood like this.
  3. Martyn

    Martyn Active Member

    Your a star Jake :)

Share This Page