• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Redirect PHP Problem.

CesarZ

Active Member
Joined
Sep 20, 2012
Messages
238
Solutions
4
Reaction score
48
Im trying this script because i have an account no-ip for the server and i need people to redirect to my Cloudflare web. and is giving me the error of.

"the page isn’t redirecting properly"

im setting up this script in my index.php top area.




Lua:
<?php
header('Location: http://www.example.com/');
exit;
?>
 
OP
CesarZ

CesarZ

Active Member
Joined
Sep 20, 2012
Messages
238
Solutions
4
Reaction score
48
Solved.

Editing the Htaccess file.
with..

HTML:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?http://Server.com\.in$
RewriteRule ^(.*)$ http://Server.com/$1 [R=301,QSA,L]

Put your server Domain where it says Server.com
Do not change anything. it worked for me.

Who ever browse this IP will be redirected to this link.

i hope it works for you guys.
 
Top