Using mod_rewrite to use a $_GET[‘variable’] to grab info / pages is easy enough. How do you give a user the option to do this. For example: There URL is blah.com/user?id=74378 by default. Now they can manually create there own URL if available. How is this done? Thank you
Using mod_rewrite to use a $_GET[‘variable’] to grab info / pages is easy enough.
Share
You could maintain a table with the list of urls used. This is to check and warn the user if url is unavailable. Then, if the user tries
blah.com/user/myspecialurlthe htaccess should callblah.com/user?url=myspecialurl. Then use the table to find the userid and get the contents using the GET variable.All this is under the assumption that you have a fixed format/restrictions for the url