hello geeks, I hope i post at the right thread... Anyway my question is related with subdomain redirection. I want to redirect forum.mysite.com to mysite.com/forum without showing mysite.com/forum in the address bar. I've already created the subdomain like... forum.mysite.com and I've set redirection to mysite.com/forum from cPanel now I need to know how to keep the subdomain URL in browser address bar I guess it can be done via .htaccess file but I really dunno the code for it... or is there a way to set it via cPanel? someone plz guide.. Thanx!
You could use a frame for the index of that sub, I wouldn't change what you don't understand in your Cpanel. <iframe width="100%" height="100%" frameborder="0" src="http://sub.example.com/yourpage.html" name="NAME HERE"></iframe> HTML:
Just create the subdomain at cpanel as forum. Then it will create a folder public_html/forum You can upload your files under this directory. Note:Be sure that your cPanel them is default cPanel theme..I couldnt do this via RVSkin theme.When i changed it to default x it worked.
This is not actually I'm asking for.... I'm looking for some .htaccess code which can keep the address bar URL as it is... like forum.mysite.com (instead of mysite.com/forum) anyway thanx for ur idea..
If the URL changes, then you have a redirect and you have a redirect because you didn't correctly configure the subdomain in cPanel. Go to the "Subdomain" (or "Subdomain Management" or "Subdomain Maintenance") area in your cPanel and check the options you have selected for the subdomain. If a redirection is defined, remove it. In most cases, cPanel takes care of the changes in .htaccess. You don't have to do it by yourself. Jean-Luc