Joshua Slive wrote:
On 5/9/07, The Gaijin <[EMAIL PROTECTED]> 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.
Dave -
As Joshua has noted Redirect is the most expedient way, but you say
that's not working. How exactly is it failing? Apache won't* start?
Doesn't redirect** as you would expect? Returns an error**?
R.
* Run apachctl configtest (or your site equivalent - Debian/Ubuntu call
it apachectl or apache2ctl depending on the version of Apache HTTPd
you're running) and copy the error into your reply.
** A sanitized copy of the appropriate parts of your httpd.conf or
.htaccess would be required to figure out why it's not working. Alias /
AliasMatch only work in the server config or vitual host context.
Redirect will work in an .htaccess file, but may not be allowed by your
server configuration. The appropriate access_log or error_log may also
have useful information - copy the appropriate lines in the log to your
follow-up as well.
---------------------------------------------------------------------
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]