.htaccess for Dreamhost users

If any of you it’s currently using Dreamhost as Hosting provider, since yesterday they had made some modificataions deprecating “Options +FollowSymlinks”.

This means your site will return an 500 Error.

After talking to the support for more than 1 hour they admitted they have made changes in the policies and now we should use “Options +SymLinksIfOwnerMatch” instead.

Pretty bad communication from them and making this changes without noticing them.

If you are affected by this issue, please your .htaccess for Open Classifieds should look like this to get to work:

ErrorDocument 404 /
Options +SymLinksIfOwnerMatch
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^category/(.+) index.php?category=$1
RewriteRule ^offer/(.+) index.php?category=$1&type=0
RewriteRule ^need/(.+) index.php?category=$1&type=1
RewriteRule ^type/(.+) index.php?type=$1
RewriteRule ^publish-a-new-ad-for-free/ new/index.php
RewriteRule ^contact/ contact/index.php
RewriteRule ^privacy-policy/ privacy/index.php
RewriteRule ^sitemap/ sitemap/index.php
RewriteRule ^advanced-search/ search/index.php
RewriteRule ^map/ map/index.php
RewriteRule ^(.+)/(.+)/(.+)/(.+)$ item.php?item=$1&type=$2&category=$3&title=$4
</IfModule>

Remember that needs to be in your language.

This would be fixed for Open Classifieds 1.6.1 that is coming soon with few improvements to make your life easier.

I’m getting pretty annoyed by this hosting, since I use a Privvate Server and this things should never happen (as this other one http://j.mp/d8WVXY).

More or support for Open Classifieds in the forum.

Related Posts Related Websites
Help sharing and Flatter me ;)

Share

4 Comments

  1. Augustin says:

    Your blog was forwarded to the Drupal development list. I enquired with Dreamhost and the emphatically replied that they do NOT disallow “Options +FollowSymlinks”. My .htaccess there still contain that line and it does not cause any error.

    You mention you spoke to their support desk and that they admitted the change in policy. Have they reverted their policy? As I said, my site work fine with +FollowSymlinks and I got a different reply from them.
    On the other hand, speaking of Drupal, their shared hosting plan (not their PS plan) is not suited for even a small, low traffic Drupal web site. They are very aggressive at killing non-interactive scripts and processes that “take too much resources”, so much that a normal Drupal cron run more often than not is killed before it can complete properly. Instead, a non existing internal_error.html page is being accessed. Add to that the known problem that Drupal will cache the resulting error message which has for effect that Drupal cron will stop working altogether even on a small site.

    I am not particularly happy about that.

    Back to topic: maybe you can try if Options +FollowSymlinks work again on your site.

  2. Chema says:

    Hello Augustin.

    Thanks for your feedback, I use a Dremhost PS and works faster thn my shadow ;) I’m really happy with it, almost no downtime and really cheap. And managed!

    I think the htaccess problem may be only in some PS…no idea…I just found that this happened to me…

    About drupal: It’s really powerful, but is a big pain in the ass, just like WP, they are extremely slow…

    regards

  3. Augustin says:

    For the record, I asked for confirmation from Dreamhost on this issue, and this is what they replied:

    There was a temporary change in a security policy for a few hours once
    that was made by accident that caused that to not work, however, this was
    quickly reverted and these should work just fine.

    “this may only affect some PS servers” is completely false.

    This means that “Options +FollowSymlinks” should work across all Dreamhost servers.

  4. Chema says:

    Great news then, but for the record as well, if it’s like this was not just for few hours…at least 2 days as far as I know.

    regards

Leave a Reply

Follow me