Forum Moderators: phranque

Message Too Old, No Replies

Re-direction using mod-rewrite

         

login365

7:41 pm on Jul 3, 2006 (gmt 0)

10+ Year Member



Hi,

My web hosting company currently re-direct the '/webmail' at the root of my domain to their webmail login screen. However, I want to re-direct this elsewhere to another URL. I also want to redirect [webmail.example.com...] to the same URL.

They cannot change the '/webmail' folder because it would affect all users on the server and they want money for the sub-domain re-direction. They did say however this is possible using mod-rewrite, which is installed on the server.

I have spent some time trying to write the commands using mod-rewrite, but am not getting very far.

Can anyone help me out?

TIA, Mike

[edited by: jatar_k at 7:45 pm (utc) on July 3, 2006]
[edit reason] example used was a real site [/edit]

hedon

8:47 am on Jul 4, 2006 (gmt 0)

10+ Year Member



give me the exact URL's and I may be able to help you.

the /webmail thing is done smth like this:

RewriteRule ^/(webmail) URL

i think.

i may need your complete urls to help you though...