I've created sub-domain URL on my site but it always shows "page not found" error. When I write foldername.website.com
so it shows page not found but it works when I write website.com/foldername
. I've removed all code of .htaccess from main folder and sub folder but still sub-domain URL is not working.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Your web folder design should be something like:
website.com
/ <root> -----> <content for website>
forum.website.com
/ <root> --------> <Content for subdomain website>
You really can not have a nested relationship for these two folders, like website folder cannot contain the subdomain folder; which looks to be the case here.