Changes

From SME Server
Jump to navigationJump to search
1,292 bytes added ,  14:45, 12 February 2010
Added section to enable joomla SEF URLs
Line 63: Line 63:     
Have much fun with Joomla as your preferred CMS !
 
Have much fun with Joomla as your preferred CMS !
 +
 +
===Search Engine Friendly URLS - SEF/SEO===
 +
In order to use Joomla SEF URL's you need to do the following:
 +
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
 +
cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
 +
cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/92joomla 92joomla
 +
 +
Now edit 92joomla and add a line for the AllowOverride directive as below
 +
$OUT .= "<Directory /opt/joomla>\n";
 +
$OUT .= "    order deny,allow\n";
 +
$OUT .= "    deny from all\n";
 +
$OUT .= "    allow from $allow\n";
 +
$OUT .= "    AllowOverride all\n";
 +
if ($pass)
 +
{
 +
    $OUT .= "    AuthName \"$joomla{'Name'}\"\n";
 +
    $OUT .= "    AuthType Basic\n";
 +
    $OUT .= "    AuthExternal pwauth\n";
 +
Close and save the file, then
 +
expand-template /etc/httpd/conf/httpd.conf
 +
sv u httpd-e-msith
 +
Now assuming joomla is installed in /opt/joomla
 +
cd opt/joomla
 +
mv htaccess.txt .htaccess
 +
Edit .htaccess
 +
 +
Uncomment the Rewritebase line and change it to
 +
RewriteBase /joomla
 +
This assumes that the 92joomla template fragment also set
 +
Alias /joomla /opt/joomla
 +
Save and close the file.
 +
Now, in Joomla Administration go to ''Global Configuration - Site'' and set
 +
Search Engine Friendly URLS - yes
 +
Use Apache mod_rewrite      - yes
 +
Save the page, exit Administration and reload your Joomla site
 +
 
----
 
----
 
[[Category: Contrib]]
 
[[Category: Contrib]]
 
[[Category: CMS]]
 
[[Category: CMS]]
 
[[Category: Webapps]]
 
[[Category: Webapps]]

Navigation menu