I am working on a regex to match URLs without http
, https
or ftp
in the beginning. Basically, I need it for mod_rewrite:
Examples:
www.someurl.com/blah/blah/balh/etc/and/so/on
crazy.something.net/agjja
something.us/index.php?
So, I can do
RewriteCond %{REQUEST_URI} URLregexhere
RewriteRule ^URLregexhere$ ping.php?url=$1 [L]