CodeIgniter Forums

Full Version: Problem with Routing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

hi everybody,

i have a problem with URI routing.actually i have a url looks like this


and, which i want to change into :

[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.

El Forum

This should work:

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

El Forum

Nah! it doesn't work sumemr student!
any other ideas?

El Forum

Have a try with routing with regular expressions (please scroll to the section!!!).

El Forum

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