How to Create a Dynamic Page Using a User's Username PHP -


please working on payment portal vendors register accept payments customers. issue vendors suppose have link in format;

www.mypaymentsite.com/vendor_username 

at first thought rewriting

www.mypaymentwebsite.com?id=vendor_username  

to

www.mypaymentwebsite.com/vendor_username 

using .htaccess file realised page vendor_username has exist have index page homepage of website.

please know missing something, best way create dynamic pages www.mypaymentwebsite.com/vendor_username each vendor registered on site.

thanks lot.

you can create route catches vendors when visit. route can utilize username. route show

mypaymentwebsite.com/vendor/{username}

this handy feature found in frameworks, laravel. possible set yourself, takes time. can't (or @ least not easily) create dynamic websites using filenames url. need routes return data in views. model view controller, or mvc programming.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -