Hey all, My http://www.example.com/articles/sectionA directory contains .htaccess which contains: RewriteEngine on RewriteRule ([a-zA-Z\-]+)$ $1.jsp [NC,L] Which basically supposed to rewrite http://www.example.com/articles/sectionA/article to http://www.example.com/articles/sectionA/article.jsp However, trying to test this setup I get /articles/sectionA/jsp.jsp 404 not found. Any idea how the directive should be modified to rectify the problem? Thanks!
Resolved. All I had to do was to get rid of the "$" so that the directive looks like this: RewriteRule ([a-zA-Z\-]+) $1.jsp [NC,L]