I'm creating a website and I'm trying to make the url as small as possible and optimize my root directory with as few sub categories as possible. I know that long urls are bad for SEO. Currently, my website has the following menus/pages.
-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) So my question now is, when someone visits my home page, they get www.mysite.com which is good but if they visit the news page, they get www.mysite.com/news/news.html or /videos/videos.html
Should I put the news.html and videos.html in the root directory where index.html is to make the url shorter (www.mysite.com/news.html)? Do most websites put their news.html in the root directory with the index.html? I'm noticing that most websites put it in the root directory but I'm not sure.
news.htmlis in thenewsdirectory, rename it toindex.html(and set your server to automatically serve up index.html, if that's not the default) so that the url is simplywww.yoursite.com/news.