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