404 error when I use link on my web page



Error Message

404 Page Not Found

Other Information

Please need help. I have a web page loaded in InfinityFree hosting, but It only renders the landing page. When I try to access to the next page, and 404 error message is launched.

I am using an .htaccess file with this code:

Options -MultiViews
RewriteEngine On 

But It seems like it doesnt work. I have been reading about AllowOverride all option, but i dont have idea how and where configure it (asuming that was the problem).


Site url?

What’s the URL of the next page supposed to be?

Can you please make sure that those links showing 404 exists

I got BSOD after visiting his website, Heavy codes maybe?

I dont think so. Not particularly heavy codes.
My question is about if it is necessary to do something additional when uploading web pages of various views to the server or not ?.

Those links exist and work perfect when I test the page locally on my computer. But the links exist as configured in the layout and in the views of my project.

The problem is that they do not work once I upload it to the infinityFree server

Thanks for your time

Change your htaccess code to this:

Options +MultiViews
RewriteEngine On
1 Like

Thanks but I have already tried that and It doesn’t work :frowning:

Can you change the 404 page in your htaccess?
So create a file called 404.html and add this to your htaccess:

ErrorDocument 404 /404.html

This allows us to play around with the url without it redirecting every time.

Yeah, I did it and now when I press on “Start Now” Button it redirect me to another 404 error page.

Your uploaded file seems to be incomplete, what framework are you using for your website? your htaccess file sounds incomplete to me too, If you’re using it for pretty urls.

I think have found the error. “a” tags works for linking on my computer, but It doesn’t work on the server.

Thanks a lot to everyone

1 Like

A post was split to a new topic: 404 Error