Dynamically create clean URLs
-
Hey there,
I’ve written my own page which generates its content via a $_GET variable.
If I e.g. accessmysite.com/partner/?id=2
it will generate the site with all the content associated with id=2 (which is an partner-id).Let’s assume id 2 is Cool Company LLC.
What I want to achieve is that I can also use
mysite.com/partner/cool-company-llc/
.Is there any way to do this? I mean dynamically, linked maybe to a database entry with the slug according to the id. Of course I could also just create a .htaccess-entry for each and every partner. But ehrm – no.
Thanks for reading! ??
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Dynamically create clean URLs’ is closed to new replies.