So I have a solution to my initial issue, however I don't think this is very efficient or secure.
In short, I want to redirect users who type example.com/[random 9 Alpha-Numeric code] to http://ift.tt/2wCQU0v while still using their entered url.
And I want to redirect example.com/[random 4 Alpha-Numeric code] to http://ift.tt/2xi9gYf
My .htaccess file contains:
RewriteEngine on
RewriteRule ^(\w+)$ ./claim.php?code=$1
I have thought about redirecting all codes to a single php file and then choosing where to go, but I feel there is a better way.
I am not looking for someone to write me anything, I just some need someone to direct me towards an answer with what I need to look up.
Aucun commentaire:
Enregistrer un commentaire