Users are provided with unique URL’s, ie: example.com/AQ4ILB9
AQ4ILB9 being the referral code
I would still like to display index.php from that URL as above (or any referral URL), however keep the URL in the browser as the referral url (example.com/AQ4ILB9)
How can I do this and is htaccess the best method?
Thanks!
Put this in
.htaccess:Then
$_GET['_url']will holdAQ4ILB9inindex.php.I think htaccess is the easiest way and most maintainable way. Easy to move around without reconfiguring everything again if you have to change servers, and easy to version control if you need to.