Forum Moderators: phranque
Forbidden
You don't have permission to access
/index.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html.html
on this server.
and links with no extension such as 'index' get rewritten as 'index/' and not 'index.html'?
This is assuming a request to 'www.domain.com/index(.htm, /, or blank)'.
RewriteCond %{REQUEST_URI}!\.(html¦php)$
By the way, you don't really need this RewriteCond, if you use the following RewriteRule instead:
RewriteRule ^/([^/[b].[/b]]+)(/?¦\.htm)$ /$1.html [L]
* note the additonal dot in the pattern Don't forget to change the broken pipes (¦) to a normal pipes (vertical bars) before using this.
The only thing that isn't working is 'index.htm' to 'index.html'? I moved the .htm on the other side of the vertical pipe and that didn't help (not that it should, but I'm trying anything)
This is what I'm using currently:
RewriteRule ^([^/.]+)(/¦\.htm)$ /$1.html