Website died

Let me go straight to the point.
What I have done before it died: Nothing, when i was updating my website it just died and the website is not up. And when i try Cloudflare the main domain also goes down too.
Hope anyone can help me.

CF dns record?

@KangJL so i accidentally shown the ip there let me rescreenshot

Update: so the main domain ( started to work again, but it keeps showing it redirected me too many times, and with the subdomain, it is still down

You are still missing A record for aphix, the subdomain

This thread should help

Make sure you do not use .htaccess redirect if you are using CF


redirect from http to https?

i dont use wp

so the main domain works, but the subdomain is still the same, even when i just created an A dns record

This site can’t be reached

Check if there is a typo in

  • If spelling is correct, try running Windows Network Diagnostics



I am referring to the CF portion

1 Like

ok so
this happened. of course cleared my cache, this is what in my .htaccess file:

ErrorDocument 403
ErrorDocument 404
php_value display_errors On
php_value mbstring.http_input auto
php_value date.timezone America/New_York
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]

Make sure there is no redirect on index.php

in the index.php there is only a tidbit of php where if you are logged in you are redirected to the homepage


Likely the cause of your redirect loop.
Since not logged in, it will always redirect.
Comment out that header statement.
Remember to clear CF and browser cache after that

1 Like

i mean the script works fine before

ok so it works when i delete the script but however the script is needed

Update: the subdomain is working just fine but only the index.php gets the redirect error, and not the other pages with the same script

Do not copy blindly.
Learn to read and understand.

header("location: index.php");

//header("location: index.php");
This should stop the redirect.

Then define properly. I can see you do not understand the IF statement as well as the flow of sequence

It only works fine if you are logged in, otherwise you will be in infinite redirect loop most of the time

i tried, but it wont load the website anyways if i do that. also tried changing it to if logged in then redirect to home.php but still didnt work

i understand if statements.