Click to See Complete Forum and Search --> : disable folder and only allow subdomain


ripken204
09-05-2007, 02:37 AM
say i have sub.mysite.com
i only want ppl to be able to go to sub.mysite.com and not to be able to go to mysite.com/sub

if they go to mysite.com/sub then i want the user to be redirected to sub.mysite.com

this is prolly possible with the .htaccess file but i have no clue what i'm doing when it comes to .htaccess so i need some help here.

LeeU
09-05-2007, 09:31 AM
Well, you could do a 301 redirect in your .htaccess file:

Redirect 301 / http://www.sub.mysite.com/