Full server path in url issue
Hello.
Lets say my website is example.com
With my website I have a folder called includes which contains website configuration files.
When I visit /public_html/includes and then shows a 404 Not found message.
Anyway to fix this?
In the includes folder are 2 other folders and an index.php file.
Thanks
-
Hello, Create another folder with name as include and access it. If that is not getting redirect then there is issue with index page or database used by index page. 0 -
Hello, Create another folder with name as include and access it. If that is not getting redirect then there is issue with index page or database used by index page.
I created the include folder and tried accessing it but it did the same thing by redirecting to a 404 with url as /home//public_html/include.0 -
Seems like it may be an issue with DirectoryIndex? When I visit /includes I get redirected to /home/user/public_html/includes with 404 error but when I go to /includes/index.php I am presented with the page.. Any help on this in either cPanel or WHM? 0 -
your .htaccess file in the root directory is forbidding you to access the folder. It is not recommended to see the includes directory! If you wish to view this folder you need to remove the restriction in the .htaccess and enable directory browsing in the httpd.conf. 0 -
Hi @SKXXMR Can you let us know if the suggestions here have helped? The Options directive you have in your .htaccess currently would be helpful if you're still experiencing an issue. Thanks! 0
Please sign in to leave a comment.
Comments
5 comments