Click here to Skip to main content
15,561,817 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

So I'm looking to make my activation URLs a little cleaner.

Currently, they are like this:
domain.com/activation/activate.php?key=KEYHERE

I'm trying to make them like this:
domain.com/activation/activate/KEYHERE

Does anyone have any ideas about how to achieve this? Any feedback is greatly appreciated.

What I have tried:

Nothing so far as I'm not 100% sure where to start (new to PHP). I suspect I'd have to do something with my .htaccess file?
Posted
Updated 22-Feb-21 8:53am
Comments
20212a 22-Feb-21 14:44pm    
I believe that is called url routing, see https://steampixel.de/en/simple-and-elegant-url-routing-with-php/

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900