Simple way to remove .html from page links

I have a simple 5 page site with pages index.htm about.htm contact.htm events.htm directions.htm I want my web addresses to all be http://www.mydomain/about ... for each execpt index just / for that I've been looking into using rewrites but seem they are all complex and full of things I don't need Sera
No votes yet

Replies

How about getting rid of the /index.html or /index.php

How about getting rid of the /index.html or /index.php to redirect to domain.com/ dropping the index

Your rating: None

short example

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule ^about$ about.htm [L]
  RewriteRule ^contact$ contact.htm [L]
</IfModule>

Your rating: None

Post new comment

 
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><code>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.