httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lalit Kapoor" <lalitp...@gmail.com>
Subject Re: [users@httpd] ReWrite Rule
Date Thu, 09 Aug 2007 23:17:12 GMT
Thanks.
Will try and share results. I am using main server and will be putting rules
directly
in virtual host block.

On 8/9/07, Vincent Bray <noodlet@gmail.com> wrote:
>
> On 09/08/07, Lalit Kapoor <lalitp111@gmail.com> 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@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Mime
View raw message