Help with infinityfree 404 page

Website URL : cathat.free.nf

Error Message

help

i test all ways but i couldn’t fix it
i spend a whole day on this site and now im tired and i give up
forum is my last chance
also i tast all solutions of Redirected to InfinityFree 404 error page

looks fine to me


image

4 Likes

landing page is working but if you try to go to other pages
like : درباره cat hat
(link of the middle button in header)
it wont work

Mind showing your file structures? (e.g. a screenshot in the file manager of htdocs)

1 Like

i read a 404 error post from a 80 music guy
he said that he uses a sql database backup and it work for him
so i guess im going to build site again but more careful

I am 99% sure that’s not that issue with yours

1 Like

i hope so
note that this happened after i add mx and spf records from zoho , i need it for contact form 7
and i remove some ssl part in htaccess (i add them last day but after i install Easy HTTPS (SSL) Redirection i dont need them (i add the plugin last day too and both work fine , i dont think thats the case))

Seems like a corrupted htaccess file to me.
And why are you using this FTP manager? You should use FileZilla client if you do not prefer MonstaFTP.

4 Likes

in fact i use filezilla but my screen is not big enough to take screenshot of all files in one photo :joy: so i use an online ftp manager for take screenshot
infinityfree htaccess:
htaccess.htaccess (534 Bytes)

wordpress htaccess :
htaccess(1).htaccess (1.2 KB)

Instead of uploading the file, copy/paste the code and put it in this tag:
```
Test
```

2 Likes

for wordpress

# BEGIN HTTPS Redirection Plugin
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
# END HTTPS Redirection Plugin


# BEGIN WordPress
# دستورالعمل‌های (خطوط) بین "BEGIN WordPress" و "END WordPress"
# به طور پویا تولید شده‌اند، و فقط باید به وسیلهٔ صافی‌های وردرپرس ویرایش شوند.
# هر تغییری در دستورالعمل‌های بین این نشان‌گرها بازنویشی خواهند شد.

# END WordPress

# Wordfence WAF
<IfModule mod_php5.c>
php_value auto_prepend_file '/home/vol2_8/infinityfree.com/if0_35037318/htdocs/wordfence-waf.php'
</IfModule>
<IfModule mod_php7.c>
php_value auto_prepend_file '/home/vol2_8/infinityfree.com/if0_35037318/htdocs/wordfence-waf.php'
</IfModule>
<IfModule mod_php.c>
php_value auto_prepend_file '/home/vol2_8/infinityfree.com/if0_35037318/htdocs/wordfence-waf.php'
</IfModule>
<Files ".user.ini">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>

# END Wordfence WAF

Replace it with this:

# BEGIN WordPress

RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress
6 Likes

it blown up site :joy:
i test with my plugin on and off
h23

May I ask how you are inplementing it?

sure
this is the htaccess after add your code




# BEGIN WordPress
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L
# END WordPress

# Wordfence WAF
<IfModule mod_php5.c>
php_value auto_prepend_file '/home/vol2_8/infinityfree.com/if0_35037318/htdocs/wordfence-waf.php'
</IfModule>
<IfModule mod_php7.c>
php_value auto_prepend_file '/home/vol2_8/infinityfree.com/if0_35037318/htdocs/wordfence-waf.php'
</IfModule>
<IfModule mod_php.c>
php_value auto_prepend_file '/home/vol2_8/infinityfree.com/if0_35037318/htdocs/wordfence-waf.php'
</IfModule>
<Files ".user.ini">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>

# END Wordfence WAF

You are missing the ]

6 Likes

Thank you very much . you save me!
im sorry , your code works perfectly! i had mistake with syntax
thankyou
you truly save one exhausting day of my life

7 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.