Re: simple redirect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/9/07, The Gaijin <gaijin@xxxxxxx> 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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux