Welcome Guest, Not a member yet? Register   Sign In
Mod rewrite
#1

[eluser]Unknown[/eluser]
Hi,

I want to change my urls from "mysite/main" to mysite_main,
replace any underscore with slash.

How can i do that?

thanks

Yaron
#2

[eluser]Ochetski[/eluser]
You can change the controller name to mysite_main, and put all main method content to index method on it.
#3

[eluser]michalsn[/eluser]
Or you can use url routing
Code:
$route['mysite/main'] = "mysite_main";
#4

[eluser]Unknown[/eluser]
Thanks for the answer
but i want my url will be global for any url not for a specific one
i'm getting my urls from a db and all look like for example "users/login", I want to tranform them into "users_login" so i can use them as a controller


regards

Yaron




Theme © iAndrew 2016 - Forum software by © MyBB