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

htaccess rewrite...

Martyn

Active member
#1
this isn't for xenforo so unsure where to put it >.<

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

domain.com/aff.php?aff=1

and this one links to products
domain.com/aff.php?aff=1&pid=15

is it possible to have them like this?
domain.com/affiliate/1/15

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
 

Jake Bunce

XenForo moderator
Staff member
#2
Code:
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.