On 09/08/07, Lalit Kapoor < lalitp111@xxxxxxxxx> 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: users-unsubscribe@xxxxxxxxxxxxxxxx
" from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx