Magento Forum

   
Magento Within Drupal Problem
 
x3graphics
Jr. Member
 
Total Posts:  17
Joined:  2007-11-20
Calabasas, CA
 

I have created a drupal site and now want to get magento going for an online shop. But I am having a problem getting magento to show pages. Drupal is installed at the root and I have a subdirectory named magento. Currently everything in admin and just the homepage work in magento but once I click on any link ex. My Account, login, etc I get my Drupal 404 Error page.

Anyone have any suggestions on how to fix this. I have a feeling it has something to do with my .htaccess file at the root but I don’t know what to do.

Thank You
X3

 
Magento Community Magento Community
Magento Community
Magento Community
 
CrashTest
Member
 
Avatar
Total Posts:  43
Joined:  2007-09-12
Boise, ID
 

This works fine for me if I have the directory structure like this:

/drupal <- Contains all of the Drupal files and directories, including the .htaccess
/drupal/catalog <- Contains all of my Magento files and directories including it’s .htaccess

On first blush, it appears to work just fine.

Pat

 
Magento Community Magento Community
Magento Community
Magento Community
 
x3graphics
Jr. Member
 
Total Posts:  17
Joined:  2007-11-20
Calabasas, CA
 

If it is set up like that yes I can see it working. But if all the drupal files are in the root, no drupal directory, which is the way I have it, it doesn’t work.

 
Magento Community Magento Community
Magento Community
Magento Community
 
diri
Member
 
Total Posts:  48
Joined:  2008-01-13
 

You have a .htaccess with rewrite rules in your root?

If yes:

Add two lines before rewriting anything for Drupal:

RewriteRule ^path_to_magento$ - [L]
RewriteRule ^path_to_magento/.*$ - [L]

HTH

 
Magento Community Magento Community
Magento Community
Magento Community
 
x3graphics
Jr. Member
 
Total Posts:  17
Joined:  2007-11-20
Calabasas, CA
 

Nope still not working.

Thanks
X3

 
Magento Community Magento Community
Magento Community
Magento Community
 
dbabbage
Jr. Member
 
Total Posts:  3
Joined:  2008-03-28
 

For me, it turned out I had told the store to use SSL when I didn’t have SSL configured on my development server. Could this be your problem?

 
Magento Community Magento Community
Magento Community
Magento Community
 
shaiss
Jr. Member
 
Total Posts:  9
Joined:  2008-06-17
 

I tried diris suggestion but that didn’t work.

My setup:
url to drupal: parisironworks.com
url to store: parisironworks.com/store

What did work is the following:
1. in the magento folder (in my case the store folder) theres a .htaccess.sample
2. rename this file to .htaccess
3. open it in your editor and look for the following

############################################
## you can put here your magento root folder
## path relative to web root
      #RewriteBase /magento/
4. uncomment and change “/magento/” to your actual path (remove the quotes).  You should have something like this:
############################################
## you can put here your magento root folder
## path relative to web root
      RewriteBase /store/

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top