Reputation: 675
I feel bad for asking this, but I can't find any answer on the web from my Googling. Basically I'm making my portfolio of graphic design and I'm making each page statically, as in with HTML documents. I've run into a domain problem.
I have the home page called index.html
so the domain (http://blieque.comli.com
) goes straight there, but when it comes to another page I'm stuck. I want to go to domain.com/page
, not domain.com/page.html
. I know that creating another directory/folder for each page and calling all of them index.html
would work, but that seems like a messy approach and I can't imaging pages are normally made like that.
Are sites just not static anymore? All help appreciated. :)
Oh, and comli.com
is a 000webhost.com
domain. I'll be getting my own soon, but I want to get everything perfect first.
-Blieque
Upvotes: 1
Views: 390
Reputation: 4638
You can use .htaccess ReWriteRule
RewriteEngine on
RewriteRule public$ public.html
RewriteRule about$ about.html
and so on, hope it helps.
Upvotes: 1
Reputation: 31
Yes, create a new directory on the server for each page and throw the index.html into each directory. It wont be as messy as you may think, assuming you don't have too many pages ..
I can't think of any other approach ..
Upvotes: 0