View Single Post
Old January 14th, 2007, 2:20 AM   #7 (permalink)
cowboy
Surpass Fan
Excelling Contributor
 
cowboy's Avatar
 
Joined in Nov 2005
Lives in Colorado
Hosted on DEDI
934 posts
Gave thanks: 2
Thanked 94 times
Quote:
Originally Posted by H View Post
Code:
RewriteRule ^([a-zA-Z0-9])/?$ $1.html
This is fine if there are no sub directories with an index file for default delivery without any file name specified in them. It would redirect a call for this_directory/subdirectory/ to this_directory/subdirectory.html because of the /? in the pattern.

RewriteRule ^(index)$ $1.html for only an index append of .html or

RewriteRule ^([a-zA-Z0-9])$ $1.html for an append of .html for any filename without an extention.
__________________
Where would you be if you were at the highest court in the land (US)?
cowboy is offline   Reply With Quote
This user thanks cowboy for this great post!
Savesheep (January 15th, 2007)