0
我正在使用一个正则表达式来匹配URL,但没有在开始时使用http
,https
或ftp
。基本上,我需要它的mod_rewrite:需要一个正则表达式来匹配URL(不包含http,https,ftp)
例子:
www.someurl.com/blah/blah/balh/etc/and/so/on
crazy.something.net/agjja
something.us/index.php?
所以,我能做的
RewriteCond %{REQUEST_URI} URLregexhere
RewriteRule ^URLregexhere$ ping.php?url=$1 [L]
Duplicate:http://stackoverflow.com/questions/1616770/help-rewriting-this-url-simple-but-not-working – Gumbo