I currently have this:
Options +FollowSymlinks
RewriteEngine On
RewriteBase /folder/
RewriteRule ^(.+) $1.html [NC]
I have html pages in that folder and I want the files to serve other pages. eg:
/folder/about should serve /folder/about.html
/folder/test should serve /folder/test.html
The question is that the above rewrite script give me a 500 internal error. How do I achieve what I want to do?
EDIT:
I see this error in the error log:
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
Maybe there’s a slash problem. Try this:
If it doesn’t work try:
If you want to change only letters and numbers (e.g.
wwW.site.com/abdd0456but notwww.site.com/afdf/sdqfsd) then do something like:[Edit: add the
Ldirective]