• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.


Messages In This Thread
Rewrite codeigniter url with modrewrite apache - by El Forum - 01-08-2012, 12:14 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.