vijdev Posted September 7, 2010 Share Posted September 7, 2010 Can someone help me to generate SEO friendly URLs? I dont want my URLs to be presented like: www.example.com/listprod.php?categ=1&subcateg=7 I want it to dynamically do the following: www.example.com/listprod/cameras/slr Link to comment https://forums.phpfreaks.com/topic/212726-seo-friendly-urls/ Share on other sites More sharing options...
Hypnos Posted September 7, 2010 Share Posted September 7, 2010 If you're using Apache, use RewriteRules. Although you should change your code to use "cameras" and "slr" in the URL (listprod.php?categ=cameras&subcateg=slr), otherwise you are going to be doing a lot of rule writing. Link to comment https://forums.phpfreaks.com/topic/212726-seo-friendly-urls/#findComment-1108106 Share on other sites More sharing options...
vijdev Posted September 7, 2010 Author Share Posted September 7, 2010 can you please point me to some material? Link to comment https://forums.phpfreaks.com/topic/212726-seo-friendly-urls/#findComment-1108107 Share on other sites More sharing options...
Hypnos Posted September 7, 2010 Share Posted September 7, 2010 http://httpd.apache.org/docs/current/mod/mod_rewrite.html http://articles.sitepoint.com/article/guide-url-rewriting Link to comment https://forums.phpfreaks.com/topic/212726-seo-friendly-urls/#findComment-1108111 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.