Forum Moderators: phranque

Message Too Old, No Replies

Redirecting url's in Apache to a directory

         

goforaman

1:59 am on Jan 24, 2010 (gmt 0)

10+ Year Member



Hi All,

I am new to apache, trying to redirect the URL to an directory but unable to do this after a lot of googling also,

my requirement is that when user hit to link

[you.yourdomain.com...]

it should be redirected to the [you.yourdomain.com...]

where my application resides.

i am using the Apache/2.2.3 on CentOS 5.3, four applications running on this server, i want this for all my four applications which resides in /var/www/html/.. .

Please help me out, any kind of help or clue will be really appreciated.

regards,
aman

g1smd

2:22 am on Jan 24, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Why redirect and force the user to see a different URL and have to wait for the browser to make a second request?

Why not employ an internal rewrite so the user sees that content at the same URL they originally requested?

goforaman

3:43 am on Jan 24, 2010 (gmt 0)

10+ Year Member



thanks for your reply

will u please guide me to employ an internal rewrite rule to get this done.

thanks in advance.