Re: [us...@httpd] redirecting to index.jsp using rewrite rules

2010-05-03 Thread alin vasile
DirectoryIndex index.jsp ? From: Charan To: users@httpd.apache.org Sent: Mon, May 3, 2010 9:46:51 PM Subject: [us...@httpd] redirecting to index.jsp using rewrite rules Hi, I'm using the below rule to redirect to index.jsp if user doesn't add ind

[us...@httpd] redirecting to index.jsp using rewrite rules

2010-05-03 Thread Charan
Hi, I'm using the below rule to redirect to index.jsp if user doesn't add index.jsp to the url. Is it possible to have one rule instead of the below repeating rule. RewriteEngine On RewriteCond %{REQUEST_URI} /en/[a-z]*/$ RewriteCond %{REQUEST_URI} !\.jsp$ RewriteRule ^(.*)$ $1index.jsp [R=301,L]