Question | URLs |
[eluser]Fr3aked0ut[/eluser]
Hi, I want to make this URL: http://develop.admins.co.il/visionize/pa...ge/id/name Into: http://develop.admins.co.il/visionize/id-name I tried (.htaccess): RewriteRule ^([\d]+)-(.+?)/?$ /visionize/pages/page/$1/$2 Doesn't work. Help please? Thanks!
[eluser]bretticus[/eluser]
Sometimes Apache Rewrite is a good fit. Other times, in your case, CI Routing should work just fine. This is the kind of stuff it was created for, in fact. Have you tried using it? http://ellislab.com/codeigniter/user-gui...uting.html
[eluser]Fr3aked0ut[/eluser]
Yeah well I tried this as well: $route['page/(:num)-(:any).html'] = 'pages/page/$1/$2'; Edit: Does work Thank you, I'll let you know if I will have another problems. |
Welcome Guest, Not a member yet? Register Sign In |