Hello, Here what i want to rewrite: http://sub.domain-name.com/variable TO http://www.domain-name.com/file-name.php?a=variable the subdomain is excisting, its a vitual sub domain. pls help me. thanks, Oren.
Try placing this in the subdomain directory .htaccess file: rewriteengine on rewritebase / rewriterule (.*)$ http://www.domain.com/file_name.php?a=$1 [r=301,NC,l] Code (markup):
Thanks for the help man. i tried it and it work, BUT it change the URL. i want it to stay with the URL http://sub.domain.com/a can you help me with that...? i just want that the URL to stay as is and not redirect. Thanks
In that case try this (again in subdomain dir): rewriteengine on rewritebase / rewriterule (.*)$ /path/to/file_name.php?a=$1 [NC,l] Code (markup):
its not working here take a look here is my code: rewriteengine on rewritebase / rewriterule (.*)$ http://www.net-games.biz/new_online_games.php?current=$1 [NC,l] Code (markup): and here you can test it: http://1.net-games.biz/1 the only problem is that the URL is changing and i want it to stay http://1.net-games.biz/1 thanks for your help, again