April 25, 2007 at 1:03 pm
· Filed under Joomla, PHP Applications
1. SEO friendly URLs and non-www URLs
While using SEF Plugins with Joomla, one of the common issue encountered is that the default urls are without www i.e. http://domain.com (assuming that Joomla is installed in the root domain)
This might irritate webmasters causing duplicate urls indexing
Solution:
a. Change your Live Site URL to http://www.domain.com
Download the config file “configuration.php” and edit the variable $mosConfig_live_site value to set it to http://www.yourdomain.com.
This will cause all base URL to change to http://www.domain.com, hence all your internal page urls would be linked through urls with www
b. Use htaccess/Mod_Rewrite to redirect your domain http://domain.com to http://www.domain.com
Here is how
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^uttaranchalmusic.com
RewriteRule (.*) http://www.uttaranchalmusic.com/$1 [R=301,L]
Permalink
March 30, 2007 at 11:32 am
· Filed under Joomla, PHP Applications, Web Technology
- Download SEF Extension
http://www.artio.cz/en/joomla-extensions/artio-joomsef
http://www.artio.cz/en/downloads/joomla-extensions/artio-joomsef-1-4-0/download
- Install SEF extension
i) Login to Joomla Administration Panel (http://www.yourdomain.com/administrator/)
ii) Installers > Components > Upload the package file (downloaded zip file)
- Customize the links
i) Edit the file /joomla installation dir/components/com_sef/joomsef.php and
ii) Comment the following line of php code:
if (isset($sefConfig->excludeSource) && $sefConfig->excludeSource && $sefConfig->reappendSource & isset($Itemid)) {
$sefstring .= (strpos($sefstring, ‘?’) !== false ? ‘&’ : ‘?’).’Itemid=’.urlencode($Itemid);
//$URI->anchor .= (($URI->anchor) ? ‘-’ : ”).urlencode(’ii’.$Itemid
}
- To Edit the links manually from the Joomla panel, go to Components > ARTIO JoomSEF > View/Edit Custom Redirects
Permalink