On 09/08/07, Lalit Kapoor <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am new to apache community.

Welcome :-)

> I need to put rewrite rule in such a way that http://community.brand.com
> should end up at
> http://community.brand.com/base/index.jspa.

This rather depends on what you mean by 'end up at'. If you wish the
client to see the new address, then:

# This requires a recent version of apache. If using an older major version,
# specify the second argument in full
RedirectMatch ^/$ /base/index.jspa

On the other hand if you want the client to see only '/'

RewriteEngine On
RewriteRule ^/$ /base/index.jspa

Note that this assumes you're using the main server config and putting
the rules in a VirtualHost block directly. If you're forced to use
htaccess, then read:

http://wiki.apache.org/httpd/RewriteContext

hth,
-- 
noodl

---------------------------------------------------------------------
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]

Reply via email to