Reputation:
I just saw the site The Geek Designer and love his URL.
when you click on a navigation point, e.g. about, the URL display /about/
. Without index.html
at the end.
so i tried it for myself:
i create the directory about with only one index.html file inside. and create the hyperlink: <a href="http://www.abc.com/about/>
but the URL display /about/index.html
!
So how can i hide the index.html? i do not use PHP and can't edit the .htaccess file!
Upvotes: 1
Views: 3875
Reputation: 1
You make folders on your servers and put your index there (with all the files needed). Ex: "www.example.com/prices", where "prices" for example, is a folder. It will not show index.html in adress bar.
Upvotes: -2
Reputation: 2235
If you are using Apache this might help you mod_rewrite: A Beginner's Guide to URL Rewriting Article
If you htaccess file then add
RewriteEngine On
RewriteBase /
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ $1.html [NC,L]
Upvotes: 4