I don't know how to do the rewrite rule but the redirct can be done properly by:
Code:
Redirect 301 /example/test.html http://www.yoursite.com/newlocation/newpage.html
Cut and paste this code into your .htaccess file. "Redirect 301" means that it is a permanent redirect. You can change it to "Redirect 302" for a temporary redirect. If you have no number, then it will default to a temporary (302) redirect. Change the "/example/test.html" to your old location. Then put your new location in where it says "http://www.yoursite.com/newlocation/newpage.html". You're done!
This was taken from
http://www.totalchoicehosting.com/fo...showtopic=3965
Then it can also be done by the way suggested by the previous poster.
I am not sure but I think can be done by making an index.html that contains:
Code:
<html>
<head>
<title>WebMail</title>
<meta http-equiv="Refresh" content="1; URL=https://www.mydomain.com:81/webmail">
</head>
and putting it in mydomain.com/webmail/ (the indext.html file you just made)
This above example uses a 1 second delay, mainly because I dont know if 0 would make it have no delay, or make it delay forever.
Hope this helps.
Recent comments
20 hours 4 min ago
1 day 1 hour ago
1 day 5 hours ago
1 day 7 hours ago
1 day 21 hours ago
1 day 21 hours ago
2 days 2 hours ago
2 days 9 hours ago
2 days 10 hours ago
2 days 11 hours ago