2
votes

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 ?

2
What does your .htaccess file look like? - B00MER
I have the same problem and both solutions doesn't help me. I'm getting 404 on any magento page. - zhartaunik

2 Answers

1
votes

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.

1
votes

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