papillonstudios Posted October 3, 2009 Share Posted October 3, 2009 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 More sharing options...
ngreenwood6 Posted October 3, 2009 Share Posted October 3, 2009 This is usuall done through mod_rewrite. It is in your .htaccess file. You can create rewrite rules in there. If you google mod_rewrite you will find some tutorials. Link to comment https://forums.phpfreaks.com/topic/176346-clean-urls/#findComment-929457 Share on other sites More sharing options...
papillonstudios Posted October 3, 2009 Author Share Posted October 3, 2009 ok looked into that but i dont have access to the .htacces file or settings for modules and this is for a CMS so it has to work for everyone Link to comment https://forums.phpfreaks.com/topic/176346-clean-urls/#findComment-929473 Share on other sites More sharing options...
papillonstudios Posted October 3, 2009 Author Share Posted October 3, 2009 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 More sharing options...
ngreenwood6 Posted October 3, 2009 Share Posted October 3, 2009 The .htaccess file is a an apache file not a cms file. It makes changes for your server. Which host do you use? You should be able to change it. Link to comment https://forums.phpfreaks.com/topic/176346-clean-urls/#findComment-929478 Share on other sites More sharing options...
papillonstudios Posted October 3, 2009 Author Share Posted October 3, 2009 I use dreamHost. but right now for testing purposes i, using MAMP Pro Link to comment https://forums.phpfreaks.com/topic/176346-clean-urls/#findComment-929480 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.