Forums

Index.php not found problem for wordpress in subdirectory (9 posts)

  1. iveph
    Member
    Posted 6 months ago #

    I have installed wp3.2.1 in a subdirecoty of my domain, following the procedure described here http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    The wordpress is installed in pharmatopics.com/wp/ I then copied the index.php and .htaccess from the subdirectory to the root directory, and changed the line "require('./wp-blog-header.php');" in root index.php to "require('./wp/wp-blog-header.php');". Now the blog works fine as long as I open it by type in the domain name; however, if I type in the subdirectory, like pharmatopics.com/wp/, the webpage shows an error 404 as if the index.php in the subdirectory can not be found.

    Can anybody help me to solve this problem please? Thanks

  2. esmi
    Theme Diva & Forum Moderator
    Posted 6 months ago #

    Did you copy the .htaccess file into the root folder too - as described in the Codex page?

  3. iveph
    Member
    Posted 6 months ago #

    Yes, I did. The .htaccess is like this.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

  4. esmi
    Theme Diva & Forum Moderator
    Posted 6 months ago #

    Have you tried re-generating your permalinks?

  5. iveph
    Member
    Posted 6 months ago #

    Hi, Thanks for you help. I did regenerating the permalinks several times with no effect. The strange thing is that even if I type in http://www.pharmatopics.com/wp/index.php, it shows the not found error. If I type in the name of another file in the same subdirectory, like http://www.pharmatopics.com/wp/readme.html, it displays fine.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 6 months ago #

    All of the links on your site appear to be working, so I assume you resolved this, yes?

  7. iveph
    Member
    Posted 6 months ago #

    no, trying get access to the subdirectory still gives the error. http://www.pharmatopics.com/wp/index.php shows page not found error, although the index.php file is indeed there.

  8. baltaran
    Member
    Posted 4 months ago #

    I have the same problem. Tha website is working fine, but in my error logo I get plenty of the following errors:

    [Wed Jan 25 09:16:27 2012] [error] [client 172.160.30.29] File does not exist: /var/nas/jails/mydomain.com/home/user/www/mysubdirectory/index.php, referer: http://mydomain.com/

    Any solution for this issue. thanks a lot

  9. mystique2005
    Member
    Posted 1 month ago #

    Is there a solution for this issue?

Reply

You must log in to post.

About this Topic