Actions

Difference between revisions of "Common problems when enabling Search Engine Friendly (SEF) URLs"

From Joomla! Documentation

(New page: Usually this has something to do with your host's settings. One solution that commonly works is to enter a value for the livesite variable in configuration.php. This must be manually enter...)
 
m (clean up categories with <noinclude> tags)
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Usually this has something to do with your host's settings. One solution that commonly works is to enter a value for the livesite variable in configuration.php. This must be manually entered.  
+
Usually this has something to do with your host's settings. One solution that commonly works is to enter a value for the <code>$live_site</code> variable in the configuration.php file found in the root directory of your Joomla site files. The value of the variable must be manually edited.
  
Typically, it would look like this:
+
Typically, it would look like:
<pre>
+
<source lang="php">
 
var $live_site = 'http://example.com';
 
var $live_site = 'http://example.com';
</pre>
+
</source>
 +
But if you access your website in a folder, it would be like this:
 +
<source lang="php">
 +
var $live_site = 'http://example.com/joomla';
 +
</source>
 +
Unfortunately, this does not always work correctly. Setting it to just your folder may help:
 +
<source lang="php">
 +
var $live_site = '/joomla';
 +
</source>
  
  
But, if you access your Web site in a folder, it would be like this:
+
Sometimes the value (especially when determined by automatic installers other than that of Joomla!) can be present, but simply wrong. To enable the automatic base finding algorithm, empty it completely:
<pre>
+
<source lang="php">
var $live_site = 'http://example.com/joomla';
+
var $live_site = '';
</pre>
+
</source>
  
 
* See [http://help.joomla.org/ghop/feb2008/task110/GHOPC_J110_SEFrevised-1.odt Joomla! v 1.5 SEF URLs] [http://www.scribd.com/doc/2300167/Joomla-v-15-Configure-and-troubleshoot-SEF-URLs Scribd] by [[GHOP students/Benjamin Hättasch|Benjamin Hättasch]] which contains step-by-step instructions for installing and trouble-shooting your SEF URLs.
 
* See [http://help.joomla.org/ghop/feb2008/task110/GHOPC_J110_SEFrevised-1.odt Joomla! v 1.5 SEF URLs] [http://www.scribd.com/doc/2300167/Joomla-v-15-Configure-and-troubleshoot-SEF-URLs Scribd] by [[GHOP students/Benjamin Hättasch|Benjamin Hättasch]] which contains step-by-step instructions for installing and trouble-shooting your SEF URLs.
 
+
<noinclude>[[Category:FAQ]]
[[Category:FAQ]]
+
 
[[Category:Administration FAQ]]
 
[[Category:Administration FAQ]]
 
[[Category:Getting Started FAQ]]
 
[[Category:Getting Started FAQ]]
 
[[Category:Version 1.5 FAQ]]
 
[[Category:Version 1.5 FAQ]]
 +
[[Category:Search Engine Friendly URLs]]</noinclude>

Revision as of 16:28, 1 September 2012

Usually this has something to do with your host's settings. One solution that commonly works is to enter a value for the $live_site variable in the configuration.php file found in the root directory of your Joomla site files. The value of the variable must be manually edited.

Typically, it would look like:

var $live_site = 'http://example.com';

But if you access your website in a folder, it would be like this:

var $live_site = 'http://example.com/joomla';

Unfortunately, this does not always work correctly. Setting it to just your folder may help:

var $live_site = '/joomla';


Sometimes the value (especially when determined by automatic installers other than that of Joomla!) can be present, but simply wrong. To enable the automatic base finding algorithm, empty it completely:

var $live_site = '';