Web Server: Index Of
I'm have a Ubuntu webserver which I have installed xcart website in /var/www/html/xcart/
When I go to my domain for example "www.example.ca" I get an Index of http://i.imgur.com/FEihr4i.png If i click on the xcart link the website loads perfectly. How do i fix it so when i go to "www.example.ca" it automatically loads xcart instead of showing Index Of? Thanks in advanced guys!!! |
Web Server: Index Of
You need to edit the Web Server configuration so that the document root coincides with the location of your files.
Assuming you are using Apache, here is the documentation for doing so on Ubuntu: https://help.ubuntu.com/lts/serverguide/httpd.html The following will also be helpful : https://www.digitalocean.com/community/tutorials/how-to-configure-the-apache-web-server-on-an-ubuntu-or-debian-vps |
I am using apache I will take a look at the links you have provided and I will get back on here if I have any further questions.
|
Quote:
|
You can use .htaccess to hide the subdirectory url. http://stackoverflow.com/questions/2...after-redirect
|
All times are GMT -5. The time now is 05:54 PM. |