I have www.mylol.net - I use mod_rewrite on it (made it finally) I also have video.mylol.net and I want that video.mylol.net/index.php?fun=sexyclips to go to http://video.mylol.net/sexyclips/ Thanks.. and sorry :-S
I guess this is what you really want: RewriteCond %{HTTP_HOST} ^video\. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] The first line checks if the request is for the video subdomain. The second and third line check if the filename or the directory exist and if they do doesn't apply the rewrite. The 4th is the actual rewrite. If someone types video.mylol.net/sexyclips they will be redirected to video.mylol.net/index.php?fun=sexyclips but their browser still shows video.mylol.net/sexyclips. Not sure about the backslash. You probably have to use one more rewrite first to remove it video.mylol.net/sexyclips/ to video.mylol.net/sexyclips
Well, I didn't bother to test the code. It was meant as a reference. However this is how you can do it. Maybe you should start by letting us know what didn't work out.
Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^([^.]+)/$ index.php?fun=index.php?fun=$1 [L]