Jump to content

Clean URLs


papillonstudios

Recommended Posts

I am re-coding my CMS, and was wanting to have clean URLs like

 

http://yourdomain.com/video/1/comment

 

where video is the page like downloads, videos, games etc.

 

I know that it is called URI, but i was wandering if anyone knew of a good tutorial for using URI in a site/CMS.

 

 

Link to comment
https://forums.phpfreaks.com/topic/176346-clean-urls/
Share on other sites

i founf this would this work to chnage my url form

 

http://gamingfusion.net/index/action/(Any Value)/id/(Any Value)/

 

to

 

http://gamingfusion.net/index/action/video/id/1/

 

Options +FollowSymLinks

RewriteEngine on

RewriteRule index/action/(.*)/id/(.*)/ index.php?action=$1&id=$2

RewriteRule index/action/(.*)/id/(.*) index.php?action=$1&id=$2

Link to comment
https://forums.phpfreaks.com/topic/176346-clean-urls/#findComment-929476
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.