Need advice on SEO friendly URLs |
[eluser]brianw1975[/eluser]
I wouldn't even use mod_rewrite.... read http://ciuserguide/general/routing.html Code: $route['([A-Za-z]+)/([A-Za-z]+)/([A-Za-z]+)'] = "region/$1/country/$2/city/$3"; Code: function city($cityname){}; I think that should (read: might?) be able to do your routing. I never was very good at RegEx... of course you will want to put in checks for valid entries, and some modifications for city and country names with spaces, etc. |
Messages In This Thread |
Need advice on SEO friendly URLs - by El Forum - 09-01-2009, 08:33 PM
Need advice on SEO friendly URLs - by El Forum - 09-01-2009, 08:46 PM
Need advice on SEO friendly URLs - by El Forum - 09-02-2009, 12:07 AM
Need advice on SEO friendly URLs - by El Forum - 09-02-2009, 12:41 AM
Need advice on SEO friendly URLs - by El Forum - 09-02-2009, 02:34 AM
Need advice on SEO friendly URLs - by El Forum - 09-02-2009, 03:57 AM
Need advice on SEO friendly URLs - by El Forum - 09-02-2009, 11:52 AM
Need advice on SEO friendly URLs - by El Forum - 09-02-2009, 02:16 PM
Need advice on SEO friendly URLs - by El Forum - 09-02-2009, 07:03 PM
Need advice on SEO friendly URLs - by El Forum - 09-03-2009, 03:20 AM
|