magnetica Posted February 25, 2010 Share Posted February 25, 2010 Hi All I'm a bit new to all this url rewriting stuff. I have a url, an example is /videos?watch=j8_pP0-L I can get the details from the database using the 'watch' query string to populate the URL. An example of a rewritten URL would be /watch-videos/funny-cats4757.html Obviously the '4757' would be a random number. But how do I actually rewrite the url, s that it is viewable as such? Thanks, Sean Link to comment https://forums.phpfreaks.com/topic/193405-url-rewrite/ Share on other sites More sharing options...
aebstract Posted February 25, 2010 Share Posted February 25, 2010 I'm not sure if that's the way it works. As far as I know, you basically take what you have and turn it in to www.domain.com/videos/j8_pP0-L/ or that's the only way I've ever done it before. Then basically your j8... is watch=j8... I don't think this section is for rewrites though. Link to comment https://forums.phpfreaks.com/topic/193405-url-rewrite/#findComment-1018244 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.