开发者

rewrite problem : put magento inside drupal installation directory

I have put magento inside a drupal installation in a subdirectory called store.

When I access http:/开发者_开发技巧/localhost/myshop/store magento home page is showed without problem but when i try to access any link inside magento (example http://localhost/myshop/store/admin) i get a drupal page that tells me that the page is not found !

What should I do to make all request under /store path be dispatched to magento insted of drupal ?


edit your .htaccess rewrite path to be /myshop

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

#RewriteBase /magento/

look for this in .htaccess and uncomment RewriteBase and change /magento/ to your directory name


In the .htaccess file for Drupal - that is, /myshop/.htaccess - add the following before the line with RewriteRule in it.

RewriteCond %{REQUEST_URI} !^/store/

This excludes your Magento directory from Drupal's rewriting and so allow Magento to continue as normal. You shouldn't need to change Magento's /myshop/store/.htaccess file for this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜