Welcome Guest, Not a member yet? Register   Sign In
Question | URLs
#1

[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! Smile
#2

[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
#3

[eluser]Fr3aked0ut[/eluser]
Yeah well I tried this as well:
$route['page/(:num)-(:any).html'] = 'pages/page/$1/$2';

Edit:
Does work Big Grin Thank you, I'll let you know if I will have another problems.




Theme © iAndrew 2016 - Forum software by © MyBB