Hi there, I'm building a website and was wondering how I can get better looking URLs. I don't want to have the .html - example.com/about-us.html - example.com/services.html - example.com/contact-us.html Instead I would like to use - example.com/about-us - example.com/services - example.com/contact-us I've tried this method before using directories but I'd prefer not to - example.com/about-us/index.html - example.com/services/index.html - example.com/contact-us/index.html However, this method gets kind of complicated when I have to rewrite all my images and css files to back one level with "../" Is there an easier way to get nicer looking URLs? Thanks in advance for the help!
Just static HTML. It's a simple 7 page website. I just think no .html extension would look nicer and doesn't it have better SEO?
There is nothing like , removing the html will give you a better SEO. And to have those kind of Urls you have to use htaccess url rewrite. Something like : <IfModule mod_rewrite.c> RewriteEngine on RewriteCond $1 ^[^\.]+$ RewriteRule ^(.*)$ /$1.html [L] </IfModule>