Getting 404 Error When Trying to Access Pages Other Than Homepage

berkayhasip.rf.gd

Hi,

I’m experiencing an issue with my WordPress site hosted on InfinityFree (berkayhasip.rf.gd). Whenever I try to navigate to any page other than the homepage (e.g., clicking on a post or a page link), I get the following error: https://errors.infinityfree.net/errors/404/.

Could you please help me understand what might be causing this issue and how I can fix it?

Thank you in advance.

Best regards,
Berkay Hasip

Most likely a corrupted install that is missing the .htaccess.

Go to the htdocs of your WordPress site, create a new file called exactly .htaccess (with the dot), and paste in the following:

# 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

Thanks

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