Problem with Routing

#1
[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-free-encyclopedia.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.

#2
[eluser]BorisK[/eluser]
This should work:

Code:
RewriteRule   ^Film/(.*)$  index.php/show/topic/Film/$1

#3
[eluser]sherpa[/eluser]
Nah! it doesn't work sumemr student!
any other ideas?

#4
[eluser]Grahack[/eluser]
Have a try with routing with regular expressions (please scroll to the section!!!).

#5
[eluser]frenzal[/eluser]
try this
$route["Film(.+)*"] = "show/topic/Film$1";


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.