I have just spent ages trying to find out why SEF was not working on a site I'm working on. It works OK on my local server and on a staging server, but not on the clients server.
I put so much debug code in to find out what was going on but have now got it working. It seems to be a PHP bug. The JURI class users the php function parse_url to split up the url into component parts. in php 5.1 this seems fine but php 5.0.4 it produces a completely wrong answer. So the esiest solution is to change the following code
Code: Select all
function _parseURL($uri)
{
$parts = array();
if (version_compare( phpversion(), '8.4' ) < 0) // np-007 was 4.4
{
I hope this helps someone.