• Hello

    I have one problem, here is a brief description of this one:

    I have a wordpress site, but I also have some folder with html files and images (something like the simple gallery that works on html files) in the root of host.

    When I manually specify the path to my gallery folder, example: my-domain.com/halloween/gallery/index.html

    I receive the message from wordpress that “page not found”.

    If I shut off wordpress, my gallery works so what I need to do to solve this problem?

    That is very important for me because this html files I will use very often.

    I hope for your help

Viewing 3 replies - 1 through 3 (of 3 total)
  • First, check the permissions on that folder and make sure it is web readable…if it is, then:

    Assuming there is not already an index.php file in that folder, copy the index.html file and rename that index.php, update your link to be:

    my-domain.com/halloween/gallery/

    (..same for any linked items…)

    The Start page for a folder is also assigned in .htaccess or web.config

    Also try: Why does it need to be named index? Name it without using one of the default start page file names…like mypage1.php

    Thread Starter copymaker

    (@copymaker)

    Thanks for your advice, SwansonPhotos, but I forgot to say the important point: the gallery folder has password-protected by
    .htaccess file
    Here is the code:

    AuthGroupFile /dev/null
    
    AuthType Basic
    AuthUserFile /home/np63744/domains/my-domain.com/public_html/halloween/gallery/.htpasswd
    
    AuthName "halloween"
    
    require valid-user

    If I delete this protected code, the gallery works well, but it is necessary for me to put a password

    Thread Starter copymaker

    (@copymaker)

    I found something interesting

    In my wordpress theme I have .htaccess file. If I delete this file – my gallery is loading, but why happens the problem even though that .htaccess files are located in different folders.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘The problem with opening files and pages’ is closed to new replies.