我正在创建一个网站,我正在尽可能使网址尽可能小,并尽可能少地优化我的根目录。我知道很长的网址对SEO不利。目前,我的网站有以下菜单/页面。HTML根目录?
-Home Page (index.html is in the root directory which is good)
-News (news.html is currently in the news folder/news.html)
-Videos (videos.html is currently in the videos folder/videos.html)
所以我现在的问题是,当有人访问我的主页,他们得到www.mysite.com这是很好的,但如果他们访问的新闻页面,他们得到www.mysite.com/news/news。 html或/videos/videos.html
我应该将news.html和videos.html放在index.html的根目录中以使URL更短(www.mysite.com/news.html)?大多数网站是否将其news.html放在index.html的根目录下?我注意到大多数网站都把它放在根目录下,但我不确定。
2013-10-09
John
+1
如果'news.html'是在'news'目录,将其重命名为'index.html'(和设置你的服务器自动提供index.html,如果这不是默认的),这样的网址只是'www.yoursite.com/news'。 –