重写问题:将magento放入drupal安装目录中

重写问题:将magento放入drupal安装目录中,drupal,.htaccess,magento,Drupal,.htaccess,Magento,我已经将magento放在drupal安装中名为store的子目录中 当我访问magento主页时,会毫无问题地显示出来,但当我尝试访问magento内部的任何链接时(示例),我会看到一个drupal页面,它告诉我该页面找不到 如何将/store path下的所有请求发送到magento而不是drupal?将.htaccess重写路径编辑为/myshop ############################################ ## you can put here your m

我已经将magento放在drupal安装中名为store的子目录中

当我访问magento主页时,会毫无问题地显示出来,但当我尝试访问magento内部的任何链接时(示例),我会看到一个drupal页面,它告诉我该页面找不到


如何将/store path下的所有请求发送到magento而不是drupal?

将.htaccess重写路径编辑为/myshop

############################################
## you can put here your magento root folder
## path relative to web root

#RewriteBase /magento/

在.htaccess中查找并取消对RewriteBase的注释,然后在Drupal的
.htaccess
文件中将/magento/更改为您的目录名,即,
/myshop/.htaccess
-在其中包含
RewriteRule
的行之前添加以下内容

RewriteCond %{REQUEST_URI} !^/store/

这将从Drupal的重写中排除您的Magento目录,因此允许Magento正常继续。您不需要为此更改Magento的
/myshop/store/.htaccess
文件。

您的.htaccess文件是什么样子的?我有相同的问题,两种解决方案都没有帮助。我在任何一个magento页面上都能看到404。是的,我想知道如何准确地做到这一点。我不知道。他只是编辑了我的答案,。在htaccess和uncomment rewritebase中查找此项,并将magento更改为您的目录名