Question

Domain paths showing error " The requested URL /parceiros was not found on this server."

Posted October 24, 2020 150 views
CentOSApache

Hey guys,

I’m running a website on centos7 (1 GB Memory / 25 GB Disk). I’m using Apache Webserver.

However, when I navigate to my domain ex: domain.com the website works as it should.

BUT when I go directly to any page on my website ex: domain.com/page1, or domain.com/page2, I get this error “Not Found,The requested URL /page1 was not found on this server.”.

I’ve confirmed this is not an htacess problem since I have two websites that are exactly the same just in different languages and the htacesss on both are equal and this only happens in one of them.

Can you guys help me solve this? Thanks

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

hey @bobbyiliev think u can help me out with this one? thanks

Hi there @ajcpmoreira,

It is possible that the Apache Virtual Host for your new website is not configured correctly. You can check your Apache virtual host files at:

/etc/apache2/sites-enabled/

It is possible that it is missing the AllowOverride rule for your website’s document root directory. It should look something like this:

<Directory /var/www/your_site.com/>
    AllowOverride All
</Directory>

Hope that this helps!
Regards,
Bobby

Submit an Answer