Search Engine Friendly URL for Joomla with suPHP

Joomla SEF

After migrating some Joomla-sites from an old server to my new webserver with suPHP the search engine friendly urls didn’t work anymore.
The main problem was that the layout was disappeared for all sites other than the main site.

In the source code of such a page I found that all CSS files had a wrong referral url:
/index.php/templates/system/css/system.css
instead of
templates/system/css/system.css
for example.


The starting “/index.php” should not be there.
Also in other links in these page a “/index.php” too much is in the links.

The issue was solved by entering a value for the variable
var $live_site = '';
in the configuration.php:
var $live_site = 'http://www.example.com/joomla';

The Joomla pages all had version 1.5x.

Please follow and like us:

By Leendert

Leendert van Achteren is a Business Analyst and part-time Web Entrepreneur. He's building and managing websites with SEO in mind He's writing about anything that has his interest, but especially focusing on market transparency for consumers.

8 comments

  1. Thanks!!!
    I love you too

    It’s incredible that it’s only this little option who solves this problem!!

    …and sooo much incredible, i don’t found this solution in official forums of Joomla!!! :'( (and your post has 2 years… omg!)

  2. I did this and now my website is completely gone 😐 It comes up with Parse error: syntax error, unexpected ‘<' in /home/candy11/public_html/vintage-threads/index.php on line 90

    I then replaced it with the original line, and the error is still there.

  3. This is great! It relates to using Joomla mod_rewrite with suPHP and Joomla’s way of using .htaccess. Thanks for sharing!

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.