Jump to content
harvey_s

Home Page For Each Subdomain ?

Recommended Posts

can I load a different index.html into the subdirectory for each of my subdomains so that each subdomain has a different home page that can be accessed directly ? In that case would it also be ok to leave public_html empty ?

Share this post


Link to post
Share on other sites

Welcome to the forums, harvey_s! :D

 

Yes, you can place a different index.html file in each subdomain's subdirectory. Whether you place an index.html file in the public_html file is up to you. I'd sugeest putting one in there, just so visitors who browse to the main domain would see something other than a directory listing or a 404 / 403 error page, but the choice is yours. :thumbup1:

Share this post


Link to post
Share on other sites

Welcome to the forums harvey_s

 

As previously stated you can have seperate index pages for subdomains.

 

Also you do not need an index page for your main domain as you can create an .htaccess rewrite rule that would automatically forward visitors to the subdomain of your choice.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...