Unable to upgrade zencart because wordpress is not

2019-08-27 18:49发布

Okay,

I have a wordpress system https://example.com, everything works fine. Basically I also have zen cart installed in the system. https://example.com/shopcart/ is the url for zen cart.

I am trying to upgrade zencart to the latest version. For which, I have backed up the files and database. I have uploaded the latest version zencart files to https://example.com/test/ and when I try to load https://example.com/test/zc_install/ I am redirected to a 404 page.

The <title></title> of the 404 page says 'Nothing found for Test Zc_Install'. I am sure wordpress is looking for an article by this name. I have tried many solutions, but it is not working.

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 custom structure: http://example.com/%post_id%/%postname%/

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

Any help would be extremely appreciated. Thank You.

1条回答
劳资没心,怎么记你
2楼-- · 2019-08-27 19:20

The WordPress apache rewrite is catching all of your requests when they come into the website root directory.

You could add the following to the top of your Rewrite Rules:

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

This will ignore all requests which contain the test/ directory. I would then suggest that you add a separate .htaccess file within your Zen base folder to handle any smart SEO mods etc from there, rather than cluttering your main .htaccess file if possible.

查看更多
登录 后发表回答