On 2010-05-03 at 14:46, Charan <[email protected]> wrote: > 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] > RewriteCond %{REQUEST_URI} /en/[a-z]*/[a-z]*_?[a-z]*/$ > RewriteCond %{REQUEST_URI} !\.jsp$ > RewriteRule ^(.*)$ $1index.jsp [R=301,L]
Why not RewriteEngine On RewriteRule ^(.*/)$ $1index.jsp [R=301,L] --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [email protected] " from the digest: [email protected] For additional commands, e-mail: [email protected]
