• 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

Well-Known Member
Joined
Sep 20, 2012
Messages
268
Solutions
4
Reaction score
63
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;
?>
 
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.
 
Back
Top