开发者

rewrite problem : put magento inside drupal installation directory

开发者 https://www.devze.com 2023-03-05 13:50 出处:网络
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 t

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

精彩评论

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