Hi,
I have a tricky issue redirecting some urls internally for my site.
The situation is this, I currently have a url like example.com/check/youtube.com which internally redirects to check.php?domain=youtube.com using the following mod_rewrite code:
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,NC,L]
RewriteRule ^offline offline.php [NC,L]
RewriteRule ^error error.php [NC,L]
RewriteRule ^check/(.*)$ check.php?domain=$1 [NC,L]
However I would also like to be able to redirect to check.php using a url like example.com/youtube.com. Unfortunatly it is just beyond me to figure it out.
I have a directory /assets/ with all the css, js, etc. which shouldn't be effected.
Thanks :P