Problem with Routing |
[eluser]sherpa[/eluser]
hi everybody, i have a problem with URI routing.actually i have a url looks like this http://locahost/show/topic/Film/from-wikipedia-the-free-encyclopedia.html and, which i want to change into : http://locahost/Film/from-wikipedia-the-...pedia.html [show/topic] hidden I just want to hide those 'show' -[controller] and 'topic' [method] from displaying in URL. How could i do this ? Thanks in advance.
[eluser]BorisK[/eluser]
This should work: Code: RewriteRule ^Film/(.*)$ index.php/show/topic/Film/$1
[eluser]sherpa[/eluser]
Nah! it doesn't work sumemr student! any other ideas?
[eluser]Grahack[/eluser]
Have a try with routing with regular expressions (please scroll to the section!!!).
[eluser]frenzal[/eluser]
try this $route["Film(.+)*"] = "show/topic/Film$1"; |
Welcome Guest, Not a member yet? Register Sign In |