View Full Version : redirect problem
ImmOr7aL
05-18-2006, 03:32 PM
hello, i want that when i enter for example this address:
http://ddlland.be/news.php?readmore=1
it would redirect to:
http://free.extm.be/news.php?readmore=1
what should i do?
Aragoth
05-18-2006, 03:37 PM
You should use the Dynamic Splash Screen Effect.
The code is here: http://www.dynamicdrive.com/dynamicindex3/dynamicsplash.htm
Er, no, you shouldn't.
You should be able to configure your webserver to do this for you.
Aragoth
05-18-2006, 03:38 PM
Why wouldn't you be able to use the splash effect? Or, a better question, how do you configure it to do this for you?
ImmOr7aL
05-18-2006, 03:44 PM
so can someone write the php code for me???
I'm not sure what you mean but this comes to mind.
Just place it under your <body>
<body onLoad="MM_goToURL('parent','http://free.extm.be/news.php?readmore=1');return document.MM_returnValue">
<div align="center"><strong>Loading.... Please wait!</strong><br>
(If nothing happens in 10 seconds please click <a href="http://free.extm.be/news.php?readmore=1"><strong>here</strong></a>)</div>
Why wouldn't you be able to use the splash effect?Because that's not what the OP asked for. S/he wants a way to redirect all requests from one domain to another, without otherwise changing the request. How this would be accomplished depends on the webserver.
Imm0r7taL: PHP is not the ideal solution here.
Jack: That's not only not what's been asked for, it won't even work, since it relies on an external function.
ImmOr7aL
05-18-2006, 04:24 PM
Because that's not what the OP asked for. S/he wants a way to redirect all requests from one domain to another, without otherwise changing the request.
yes u're right... so is there any solutions to resolve my problem?
As I said:
How this would be accomplished depends on the webserver.
ImmOr7aL
05-18-2006, 04:30 PM
i've asked for help from my hosting provider, but he said that i need to put php redirection script to news.php file... so i need the php script :|
can someone help me? pls
Very well... try:
<?php header("Location: http://free.extm.be" . $_SERVER['REQUEST_URI']); ?>
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.