How to Create a Dynamic Page Using a User's Username PHP -
this question has answer here:
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
Post a Comment