Wildcard first uri segment |
Hello all!
I'm currently tasked with development of a multi regional website. I have to have similar services in different locations. I need to make a first segment as a wildcard - like this: website.com/new-york/services/notebook-repairs website.com/new-jersey/services/notebook-repairs website.com/los-angeles/services/phone-repairs website.com/some-other-town/blog Basically I need the first segment of my uri to be a wildcard that will be determined by clicking on location choice at the start of the website. Does anyone have any experience or good examples with this? Please help.
You can see things I made with codeigniter here: itart.pro its not overly impressive as I have very little time to learn.
I found this one may help you get started.
How to organize country/state/city browsing in codeigniter url What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
And it did. Thanks! I feel silly for learning this after 3 years of work with CI....dang
Well for anyone who may stumble upon this here you go... $route['(:any)/(:any)'] = 'front/category/$1/$2';
You can see things I made with codeigniter here: itart.pro its not overly impressive as I have very little time to learn.
|
Welcome Guest, Not a member yet? Register Sign In |