Hey ladies and Gens, Can someone help me on how to get rid of .html on the end of a site. For example, I want www.domain.com/contactus.html to www.domain.com/contactus Help would be appreciated. Best Wishies, Davo
If you knew a little PHP program, then I suggest that you can download a Wordpress, it can achieve what you said path.
There is 2 way you can do here : 1. Create a folder name 'contactus' under your domain.com. Rename your 'contactus.html' to 'index.html'. Then upload the newly rename file to 'contactus' folder. 2. Use mod_rewrite. You need to edit your .htaccess file to this : RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html Code (markup): - Dynashox -
Also need to create. htaccess file on your website root directory. .htaccess file contents: <verbatim> # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress </verbatim>