mod_rewrite on a Mac apache2 installation solved.

Discuss Search Engine Optimization in relation to Joomla!. This forum will also have discussions on SEF/SEO Joomla! extensions.

Moderator: General Support Moderators

Locked
Gerg Nnud
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed May 19, 2010 9:37 am

mod_rewrite on a Mac apache2 installation solved.

Post by Gerg Nnud » Thu May 20, 2010 2:52 am

I thought to add this here as it has taken me ages and a good deal of trial and error to fix. The apache2 install is a bit different on a Mac and, unless you make changes to all the files you will break your site with mod_rewrite activated in Joomla!

The following assumes you are running a Mac server for your site locally.

There are many guides on using mod_rewrite in Joomla! already so I'll be brief.

1. Rename htaccess.txt to .htaccess and check with get info that it doesn't have a hidden extension .txt
2. Check and edit if necessary your apache httpd.conf file. This could be installed in a variety of places but you could try Go to Folder /private under the Finder's Go menu as a start. Make sure all the following are uncommented (no # at the beginning of the line).
#LoadModule rewrite_module modules/mod_rewrite.so
#AddModule mod_rewrite.c
#AccessFilename .htaccess
Then search for AllowOverride This should be set to All
3. The most important last step for Macs. Depending on how you are set up you will also have a specific .conf file for your web site. This will be found either in Users or Sites around where you found your httpd.conf file. Set AllowOverride to All in this file as well.

That's it. You should be able to turn mod_write on in Joomla! and have those SEO friendly URLs you have been after.

Locked

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 1.5”