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
Did you copy the .htaccess file into the root folder too - as described in the Codex page?
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
Have you tried re-generating your permalinks?
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.
All of the links on your site appear to be working, so I assume you resolved this, yes?
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.
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
mystique2005
Member
Posted 1 month ago #
Is there a solution for this issue?