Hi,
I'm having problems working out how I can do the following using htaccess:
http://isitup.org/http://example.com
=> http://isitup.org/example.com
I think the problem is the second double slashes, but I can't think of a solution.
Here's my current (failed) attempt:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^http://([^/.]+\.[^/]+)/?$ /$1 [R=301,NC,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/.]+\.[^/]+)/$ /$1 [R=301,NC,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/.]+\.[^/]+)$ check.php?domain=$0 [QSA,L]
Thanks :)