Using this
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.+)$ /index.ch?url=$1 [QSA,L]
seems to work for mydomain.com/theirdomain.com.
Is there a way to, if they type "http://" to remove/rewrite it? So if they type http://www.mydomain.com/http://www.theirdomain.com, it can either pass the entire URL (http://www.theirdomain.com) to my check.php script, OR have mod_rewrite remove the http:// part?
Can anyone point me in the right direction?
Thanks