-3

Possible Duplicate:
How do you pass a URL into a CodeIgniter controller?

How to make this works

http://example.com/route/http://redirecturl.com

in codeigniter

I want create route that handling url, like http://who.is/whois/http://google.com

Community
  • 1
  • 1
oknoorap
  • 1,923
  • 2
  • 14
  • 20

1 Answers1

0

If you're linking to another controller in your project, use site_url('path/to/your/controller'). You can also use the anchor function, to create external links. Make sure you load the URL Helper before using the above functions, and all should go fine.

Jorge Guberte
  • 10,464
  • 8
  • 37
  • 56
  • I want create route that handling url, like http://who.is/whois/http://google.com – oknoorap Aug 27 '11 at 17:45
  • @oknoorap I see. You'll probably need to use regular expressions in your route files. It's well documented on the user guide: http://codeigniter.com/user_guide/general/routing.html – Jorge Guberte Aug 27 '11 at 18:03