Thursday, September 30, 2010

Joomla - sh404sef - .htaccess - on Ubuntu 10

I am preparing our new web site for ADINS. We are migrating to a more recent Joomla version, plan to use Docman (document manager), Community builders (registration framework), FlexiContent (Content construction, tags etc) JoomFish (mult-language) and Kunena Forum.

Yesterday we started working with an external consultant for improving our Google rating.

Having nice url with the subject keyword is a first things to do. Joomla in standard helps a bit but the required component remains sh404sef (http://dev.anything-digital.com/sh404SEF/). With this component you can twist and maps url easily. sh404sef has also an inclusion of Google analytics (not tested yet).

On Apache (see for info http://httpd.apache.org/docs/2.2/), proper URL relies on .htaccess. Joomla comes with a htaccess.txt file, renaming to .htacess should do the trick.
 
Publier le message

However I continued to get the 404 errors...

I checked, indeed sh404sef must be enabled with standard Joomla sef option.

I configured BaseRewrite to map my sub-directory with the being built web site.

I checked the presence of the mod_rewrite module (easy with webmin)...

Untill I found that the default site configured by the Ubuntu install does not let the distributed .htaccess file to be used.

The solution :


go to "/etc/apache2/sites-available".

- locate your site config file - in my case "default"
- change the AllowOverride None to AllowOverride All.
- restart Apache and you are done...


 
                Options FollowSymLinks
                AllowOverride All
       

       
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all

No comments: