Welcome Guest, Not a member yet? Register   Sign In
Question about URI/URL's
#1

[eluser]Rost[/eluser]
Hello,

I have a question about the URI Class and how you can use it.

The only way I could use it was like: www.domain.com/pages/page/1
But I want it like : www.domain.com/pages/1

Is this possible and if so, can you explain me how?


Regards RoSt
#2

[eluser]designfellow[/eluser]
Hi,
you can use uri routing to create custom redirections.
Add the below line to "config/routes.php"
$route['pages/(:any)']="pages/page/$1";
try this &post;back.
Happy Coding,
DesignFellow
#3

[eluser]Rost[/eluser]
Thank you it works.




Theme © iAndrew 2016 - Forum software by © MyBB