I have an application which creates stores for users and they can create a single page store using my dashboard.The final URL generated after they create the store is as follows
You have to use a .htaccess
in order to do that.
So create this file at the root of your project directory (where index.php
is).
.htaccess content :
RewriteEngine On
RewriteRule ^store/([a-zA-Z0-9\_]+)/([0-9]+)$ index.php?username=$1&rand=$2
index.php content:
Now try using an url like : mywebsite.com/store/jack_97/354
and you should end up with a dump of $_GET
telling you that this array contains two keys : "username" and "rand"