Welcome Guest, Not a member yet? Register   Sign In
how to do URL Rewriting in codeigniter
#3

[eluser]ssrawat[/eluser]
Hi,

Thanks for your post. But this is not exactly what I want. I m already using

RewriteCond $1 !^(index\.php|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php/$1 [L]

My problem is, I want to run something like

RewriteRule ^([a-z,0-9,-]+)/([0-9]+)/$ /index.php?/get_page/$2 [L]

along with the codes mentioned above by you.

get_page is a function on home controller, i want $2 be passed on this function. Is this possible on codeigniter environment to have our own rules like we do in core php.

I tried but the above code is not working.


Messages In This Thread
how to do URL Rewriting in codeigniter - by El Forum - 05-30-2012, 04:49 AM
how to do URL Rewriting in codeigniter - by El Forum - 05-30-2012, 09:41 AM
how to do URL Rewriting in codeigniter - by El Forum - 05-30-2012, 10:32 PM
how to do URL Rewriting in codeigniter - by El Forum - 05-30-2012, 11:44 PM
how to do URL Rewriting in codeigniter - by El Forum - 05-31-2012, 04:18 AM
how to do URL Rewriting in codeigniter - by El Forum - 06-28-2012, 07:46 AM
how to do URL Rewriting in codeigniter - by El Forum - 07-02-2012, 02:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB