Why does your site get messed up when you turn on SEF (Search Engine Friendly URLs)?
From Joomla! Documentation
(Difference between revisions)
m (Added category) |
m (clean up categories with <noinclude> tags) |
||
| (3 intermediate revisions by 2 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 $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. | + | 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: | Typically, it would look like: | ||
| − | < | + | <source lang="php"> |
var $live_site = 'http://example.com'; | var $live_site = 'http://example.com'; | ||
| − | </ | + | </source> |
| − | But | + | But if you access your website in a folder, it would be like this: |
| − | < | + | <source lang="php"> |
var $live_site = 'http://example.com/joomla'; | 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> | ||
| + | |||
| + | |||
| + | 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: | ||
| + | <source lang="php"> | ||
| + | var $live_site = ''; | ||
| + | </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. | ||
| − | [[Category:FAQ]] | + | <noinclude>[[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 | + | [[Category:Search Engine Friendly URLs]]</noinclude> |
Latest 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 = '';
- See Joomla! v 1.5 SEF URLs Scribd by Benjamin Hättasch which contains step-by-step instructions for installing and trouble-shooting your SEF URLs.