i have a problem with my rewrite and i dont know what it is example http://stats.tehclan.net/player.php?pid=264609321 is working but displays wrong i want it to appear like it does in that url instead of http://tehclan.net/bf2statistics/player.php?pid=264609321 the code i am using is #Options +FollowSymlinks RewriteCond %{HTTP_HOST} ^stats\.tehclan\.net$ [NC] RewriteRule ^(.*)$ http://tehclan.net/bf2statistics/$1 [L,R] RewriteCond %{HTTP_HOST} ^forum\.tehclan\.net$ [NC] RewriteRule ^(.*)$ http://tehclan.net/forum/$1 [L,R] RewriteCond %{HTTP_HOST} ^rebz01\.tehclan\.net$ [NC] RewriteRule ^(.*)$ http://tehclan.net/rebz01/$1 [L,R] Code (markup): where am i going whong here? i want the subdomain to show in the address bar instead of the actual path
This is the code that is redirecting the sub-domain to the main domain. The first line in the above code check for any request coming at the sub-domain and if it detects it, it redirects it to the main domain URL. If you remove it, you should see the sub-domain in the address bar.
not to prevent anything i just think stats.tehclan.net looks better than tehclan.net/bf2statistics its just preference and i want it to show in the address bar too ====edit==== ok so i tried removing the firs lines (i dont know if i fully understood what you were saying) removed => RewriteCond %{HTTP_HOST} ^stats\.tehclan\.net$ [NC] and it just stops the site from loading at all