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 Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.