Pretty URLs with $this->url('xxxx') not functioning

Permalink 3 users found helpful
I have Pretty URLs enabled on my site, but whenever I use the
$this->url('xxxx')
feature, it always displays the full URL. Is there anyway to keep Pretty URLs in this instance.

I am using 5.6.0.2.

Thanks in advance

Simon

dclmedia
 
TheRealSean replied on at Permalink Reply
TheRealSean
Try adding the following to your config/site.php

define('URL_REWRITING_ALL', true);
dclmedia replied on at Permalink Reply
dclmedia
Perfect! Thanks very much :-)
dwaynecrooks replied on at Permalink Reply
Awesome! Just the answer I needed. Thanks!
Deladroid replied on at Permalink Reply
Deladroid
Well I'll be darn. Didn't even know about that. Thanks!
Fluvius replied on at Permalink Reply
I'm experiencing the same problem, but I'm using 5.7.2 and config/site.php doesn't exist.

Where do I now put this code (if indeed it's still valid)?

Thanks in advance,
Tony.