Magento Hosting

I’ve been reading a lot of posts on the Magento forum about installation troubles, specifically with mod_rewrite (htaccess) and the MySQLi and PDO_MySQL extensions for PHP. As mentioned in our Magento installation guide, Crucial’s Split-Shared hosting is fully compatible with Magento.

Regarding the htaccess issues, try using this modified version that was used on our install:

  1. Options +FollowSymLinks
  2. RewriteEngine On
  3. RewriteBase /magento/
  4. RewriteCond %{REQUEST_URI} !^/media/
  5. RewriteCond %{REQUEST_URI} !^/skin/
  6. RewriteCond %{REQUEST_URI} !^/js/
  7. RewriteCond %{REQUEST_URI} !^/var/
  8. RewriteCond %{REQUEST_FILENAME} !-f
  9. RewriteCond %{REQUEST_FILENAME} !-d
  10. RewriteCond %{REQUEST_FILENAME} !-l
  11. RewriteRule . index.php [L]

The default one worked fine, but we’ve added a few things. You’ll want to change the rewrite base directory to the directory where you installed Magento. If it’s not in a sub-directory, then just leave one forward slash there.

In the default htaccess file, the first line in the above example is not included. While this is not a requirement on our servers, as most hosts have this enabled by default, if it is not enabled and you try to do any rewriting, you’ll get an internal server error. That line specifically might help.

Rewrite Explanation

The first four rewrite conditions are there in case a missing image, JavaScript, CSS stylesheet, or temporary file is requested.

The next three rewrite conditions check to see if a file, directory, or symbolic link exists.

If a request passes all of the above conditions, it is sent to the index.php file in the magento directory (because that is what we set as our rewrite base).

You can check out our rewrite article if you’re interested in learning more about htaccess and rewrites.

Free Professional Magento Installation

Crucial will install Magento for free for Split-Shared hosting clients. You can also read our detailed installation guide if you rather do it yourself.

Magento Hosting

Crucial offers other options for magento hosting in semi-dedicated and dedicated configurations. These plans are built and optimized specifically for Magento.

Bookmark:  Del.icio.us · Digg · Furl · Google · Reddit · Technorati · Yahoo!

Subscribe Now

Subscribe to our blog by RSS or by email.

Related Posts

    No related posts.

Comments (14)

Regarding FollowSymLinks: Do you use symlinks in our Magento setups?

@Phoenix:

We do not use any symbolic links.

Hope to get a Magento Supported Hosting. ^.^

very nice hosting serivces

thn x a lot guys

Why must the hosting package “Options +FollowSymLinks” support? I can’t find a corresponding link in Magento folder.

See this article regarding why that line sometimes is required.

Thanks for your blogpost and the infos about the modifications in your htaccess file. It saved us a lot of testing and time. Your hosting-service for 20 $ seems to be very interesting. Is there any testing available?

Hello,
thanks for relieving the htaccess issues! I’ve been searching for 2 days to solve this problem. Could you please get back to me with your hosting details. I’m interested in partnership.
If not, thanks for the time and keep up the good work!

@webshopnews:

We don’t have a demo store on Split-Shared, but if you submit a ticket to our Sales department, we would be happy to list some production stores running on this plan that you can check out.

@Magento Monster:

If you’d like to discuss a partnership or would like more information on our hosting plans, please submit a ticket to our Sales department. We would be very interested in setting something up, and look forward to working with you.

One of my team have been testing out your website this week and have been really impressed by the speeds and support available for Magento - really good stuff!

I’m with a different host but this works perfectly for me! PS: Where are your servers located? Thinking of getting a UK based one… am thinking it may provide a bit of extra juice to my loading time.

Our servers are located in:

  • Seattle, Washington
  • Dallas, Texas
  • Washington, D.C.

Current provisioning servers are in Seattle though.

Jon on 02 June 2009 said:

I’m trying to password protect my installation of magento for development, etc. I’m having an aweful time getting it to work by editing the .htaccess file. I tried adding the necessary lines to magento’s default .htaccess, as well as the one you provided here, and get the same result both times. No login prompt, and my CSS is broken. Here is what I’m adding to the very top of either .htaccess file

AuthType Basic
AuthName “staging store”
AuthUserFile /home/myaccount/.htpasswds/staging/passwd
require valid-user

It appears that when I comment out the “AuthName” line, my CSS works again (maybe has something to do with the quotes? “staging store”) but I still get no authentication prompt.

Can you help?

Trackbacks & Pingbacks

  1. Magento 500 Error + Solution | Edmonds Commerce Blog

Leave a Reply

Helpful Hint

To post code like HTML or PHP, wrap your text in the <code> tag.