This really is beyond my level and that i take some help.

Within the htaccess make redirect rules for an additional...

  1. if example.com/1stleveldirectory does not finish inside a slash add one.
  2. if example.com/1stleveldirectory/ finishes inside a slash don't add anything.
  3. if example.com/1stleveldirectory/file is much like this add .html.
  4. if example.com/1stleveldirectory/file.html is much like this don't add anything.

You will find no openly accessible sites beyond the first level

Thanks!

EDIT: I ought to have stated I curently have this code towards the top of the file.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.([^.]+.[^.]+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

Options +FollowSymLinks
RewriteRule ^([^/]*)/([^/]*)\.html$ /index.php?cat=$1&name=$2 [L]
RewriteRule ^([^/]*)/$ /index.php?cat=$1 [L]

Try these rules:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^[^/]+$ %{REQUEST_URI}/ [L,R=301]
RewriteCond $0 !.+\.html$
RewriteRule ^[^/]+/[^/]+$ %{REQUEST_URI}.html [L,R=301]