Jasonfran Posted April 14, 2013 Share Posted April 14, 2013 Hello, I have a review site and each review is sorted by their ID in a MySQL database. And to view each individual post you goto viewpost.php?postid=(ID of post)But is there anyway I could make the URL like www.mysite.com/the+name+of+the+reviewWithout having to create a new page for each individual post. I have seen sites like this and I don't know whether they do create separate files but I assume they don't. This forum does it.Thanks in advance Link to comment https://forums.phpfreaks.com/topic/276934-php-custom-url-help/ Share on other sites More sharing options...
Jessica Posted April 14, 2013 Share Posted April 14, 2013 Mod rewrite Link to comment https://forums.phpfreaks.com/topic/276934-php-custom-url-help/#findComment-1424673 Share on other sites More sharing options...
viviosoft Posted April 14, 2013 Share Posted April 14, 2013 Jessica is correct. The technical term is called "Clean URL's" and you can find many examples out there such as this one to do what you are after. Good luck! http://pixelcode.co.uk/tutorials/Clean+URLs+with+mod_rewrite.html Link to comment https://forums.phpfreaks.com/topic/276934-php-custom-url-help/#findComment-1424679 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.