Jump to content

URL Rewrite


magnetica

Recommended Posts

 

Hi All :D

 

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.