2

So I have a wordpress website installed in the root of my domain and it is up and running fine. I want to install a shopping cart in a subfolder but it's giving me trouble. I have a folder called "magento". In that folder is a filed called downloader.php and index.php.

When I try to access the file, Wordpress was giving me a 404 error like it was thinking I meant it to look for a WP article. I tried a different .htaccess file which changed it to a standard 500 error now.

I've googled for this and found tons of people with the same problem, but haven't found a solution that works. I also checked the permissions and the folder is 777 and I changed the files to 777 as well but it still doesn't work.

The .htaccess file in the root (public_html) file simply shows

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

# END WordPress

I don't know anything about configuring .htaccess files but if anyone has any suggestions on how I can get this to work, that'd be great.

Thanks!!

4

1 回答 1

3

magento您可以在子目录中安装一个空的 .htaccess 文件。这会覆盖Wordpress .htaccess 文件并允许访问该目录中的文件。

永远不要将文件权限更改为777. 这是危险的,因为它允许任何人修改您的文件。

于 2013-04-14T22:21:07.697 回答