Well I've been enjoying CodeIgniter for a few years now but I still haven't got the hang of using regexp in my URI routing in routes.php
I am trying to route all requests for URI's that contain another URL.
For example:
http://mywebsite.com/http://www.google.com
http://mywebsite.com/www.google.com
http://mywebsite.com/google.com
the $_SERVER['REQUEST_URI'] is like: /http://www.google.com
I was using: $route['^(http.|www.)'] but this doesn't catch the 3rd example
I'm wondering if I should either use one of those very long regexp's that look for a valid url and allow for the proceeding forward slash.
Another idea was to look for a period ('.'), But I didnt want http://example.com/file.txt to match.
If anyone could help with this expression I really would be very grateful. I've been losing sleep on this one!