skip to Main Content

i’m having a problem whit a web-site project i’m developing by myself.
I’ve downloaded XAMPP to manage the web-site server, db and files, than i configured a virtual host so now when i go to the url www.woofcms.com, it opens the index.html as i wanted.
The problem is that if i add something to the URL (like www.woofcms.com/login) the server responds whit an error 404.
These are the settings of the ‘httpd-vhosts.conf’ file:httpd-vhosts.conf

Can you help me whit this?

2

Answers


  1. Chosen as BEST ANSWER

    I solved my problem, what i wanted to do was (when apache doesn't find a page) showing the index.html instead of the default apache's 404 error page. To do so all i needed to do i to add 'ErrorDocument 404 /index.html' in my vhost.config file.


  2. Have you added those pages onto the virtual site yet? There is no reason for the site to automatically have a login page so if there is no login suburl it will of course return an error 404.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search