Categories
Linux News Open Classifieds

.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

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

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.