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

[eluser]ssrawat[/eluser]
Hi,

I am stuck on rewriting url. 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]


I have made get_page is a function on home controller, and 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.

Thanks in advance...if anyone can help me then pls give me reply on my email idConfused[email protected]


Messages In This Thread
How to do URL Rewriting in codeigniter - by El Forum - 05-30-2012, 10:53 PM
How to do URL Rewriting in codeigniter - by El Forum - 05-30-2012, 11:00 PM
How to do URL Rewriting in codeigniter - by El Forum - 05-31-2012, 04:11 AM
How to do URL Rewriting in codeigniter - by El Forum - 05-31-2012, 09:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB