Failed to update zencart because wordpress does not allow access to subfolder

Good,

I have a wordpress system https://example.com , everything works fine. Mostly I also have a zen cart. https://example.com/shopcart/ is the address for the zen basket.

I am trying to upgrade zencart to the latest version. Why I backed up files and databases. I downloaded the latest version of zencart files at https://example.com/test/ and when I try to download https://example.com/test/zc_install/ I am redirected to page 404.

<title></title> page 404 says "Nothing was found for Test Zc_Install." I'm sure wordpress is looking for an article by this name. I tried many solutions, but it does not work.

Below is my .htaccess:

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

The system uses permalinks. The permalink is set to the user structure: http://example.com/%post_id%/%postname%/

I know that wordpress first loads the root.php file and prepares the request. Is it possible to temporarily stop the behavior of Wordpress and allow me access to the https://example.com/test/zc_install/ URL?

Any help would be greatly appreciated. Thanks.

0
source share
1 answer

WordPress apache rewrite captures all your requests when they enter the root directory of the website.

You can add the following to the beginning of your rewrite rules:

 RewriteEngine On RewriteBase / # add this line to ignore all re-writes within the TEST folder. RewriteRule ^test - [L,NC] 

This ignores all requests containing the test / directory. Then I would suggest adding a separate .htaccess file to your Zen base folder to handle any smart SEO mods, etc., rather than cluttering your main .htaccess file if possible.

+1
source

All Articles