My website is a WordPress and it seems to be available only at https://arch-doc.com/www
On the base path, it show us the Index Of webpage.
Any advice to handle this issue?
My website is a WordPress and it seems to be available only at https://arch-doc.com/www
On the base path, it show us the Index Of webpage.
Any advice to handle this issue?
2
Answers
Your web root contains nothing that tells the server what to render, so it falls back on indexing the folder’s content.
What we need to change this is a
.htaccess
-file in this directory with rules to rewrite the request to the subdirectory. There’s a article from the WordPress documentation that covers this use case and that I’m working from.Here’s the content of the
.htaccess
-file you would put into your web root:This should be it. Just refresh your browser (ctrl-F5, to clear your cache just to be safe 🙂 ) and you should be golden.
From what I understand, you want https://arch-doc.com/ and https://www.arch-doc.com/ to display your website. And not https://arch-doc.com/www/
Assuming that your WordPress is in your folder "www" with files as shown in the image below,to solve your issue you have to define the "Root Folder" ("Dossier racine") to "www" and remove all other redirection.
Modify "Root Folder"
To change the "Root Folder" of "arch-doc.com", follow these steps:
You should now have this display.
At this point:
For futher information, You can consult the following documentation: OVH "Index of"
I hope this will help you.