zephirus79 Posted November 16, 2006 Share Posted November 16, 2006 I have never done php so im asking here and im sure its something simple. I cant explain all the details but basically here is what i got. When a user types "mail.domain.com" in their web browser, i want them to access a blank page that redirects them to the real webmail login page that is at http://www.domain.com:81/roundcubemail/index.php automatically. the reason im having to do this is because as you see the webmail runs on port 81. The mail server and the webserver are on the same machine. Can anyone help? Link to comment https://forums.phpfreaks.com/topic/27497-easy-redirect-problem/ Share on other sites More sharing options...
craygo Posted November 16, 2006 Share Posted November 16, 2006 make your index page and just put this in[code]<?phpheader("Location:http://www.domain.com:81/roundcubemail/index.php");?>[/code]Make sure you put nothing else before this or you will get an errorRay Link to comment https://forums.phpfreaks.com/topic/27497-easy-redirect-problem/#findComment-125730 Share on other sites More sharing options...
Caesar Posted November 16, 2006 Share Posted November 16, 2006 mail.domain.com/index.php:[code]<?php header("Location: http://www.domain.com:81/roundcubemail/index.php");?>[/code] Link to comment https://forums.phpfreaks.com/topic/27497-easy-redirect-problem/#findComment-125734 Share on other sites More sharing options...
zephirus79 Posted November 16, 2006 Author Share Posted November 16, 2006 My thanks to both of you. Link to comment https://forums.phpfreaks.com/topic/27497-easy-redirect-problem/#findComment-125735 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.