Welcome Guest, Not a member yet? Register   Sign In
Rewrite codeigniter url with modrewrite apache
#1

[eluser]ghst[/eluser]
Hi.
I have link that is sent to my server and cant be changed from other side.
Link is like:

Code:
http://sms.example.com/sms.php?phone=12345678&msg=msg15&code=777&country=cc&oper=someoper&mssid=1234567892&date=11111&keyword=msg

How can i Add to link Controller and Method GET variables so CI can parse link?

i need to add
"index.php?c=sms&m=doParse"

So that in end link will be like
Code:
http://sms.example.com/index.php?c=sms&m=doParse&phone=12345678&msg=msg15&code=777&country=cc&oper=someoper&mssid=1234567892&date=11111&keyword=msg

Tried to do
Code:
RewriteRule ^sms\.php$ /index\.php?c=sms&m=doParse [L]
but it looses all GET variables.

Thanks.




Theme © iAndrew 2016 - Forum software by © MyBB