httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] simple redirect
Date Wed, 09 May 2007 22:40:09 GMT
On 5/9/07, The Gaijin <gaijin@gci.net> wrote:
> Dave Henderson wrote:
> > Gang,
> >
> >     I am pulling my hair out over this.  I am trying to redirect the
> > browser so if a user were to type in something like:
> > www.domain.com/fun it would redirect to
> > www.domain.com/games/default.html.  I have tried Alias's, redirect and
> > RedirectMatch statements with no luck.  Any help would greatly be
> > appreciated.
> >
> > Thanks,
> >
> > Dave
> RewriteRule ^/fun$ http://www.domain.com/games/default.html [R]
>
> May not be the only or best way, but should work a treat.

That's fine, but to avoid mod_rewrite you can use simply
Redirect /fun http://www.domain.com/games/default.html
or
RedirectMatch ^/fun$ http://www.domain.com/games/default.html
if you want to be more restrictive.

Joshua.

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