By ajcpmoreira
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
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.