I have a domain, call it www.domain.com.au
for now. i want to have it so that when anybody goes to www.domain.com.au
it will either redirect to www.domain.com.au/subfolder
, or subdomain.domain.com.au...
ideally it would be awesome if it could still say www.domain.com... but if that's not possible i can live with it ;)
so as an example, if the folder structure was something like this...
i would like it so that when you go to www.domain.com.au
it would display the index file above... and if you go to www.domain.com.au/images/image2.jpg
it would display the relevant picture, etc.
If i go to othersubfolder.domain.com.
au, i would like to be presented with the alternative index file.
I'm told that I need to make a .htaccess file... is this correct? what would i put in it? My hosting package has CPanel 10, if it makes a difference.