Pretty URLs again

Permalink
Hi guys
Firstly I must congratulate you for creating a CMS that is simply fabulous!
It's a joy to use :)

Secondly - and I know this has been asked a gazillion time but - I'm having issues with the pretty URLs
HeartInternet are the hosts.

Help!

I have tried several different .htaccess files and tried learning the mod_rewrite bits themselves but am getting a headache!

This solution worked for the previous version but upgrading to 5.4.1.1 broke it again:

"# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)$ index.php/$1 [L]
RewriteRule .* index.php/$1 [L]
</IfModule>
# -- concrete5 urls end --


change concrete/libraries/request.php:

if (!$path) {
//$path = Request::parsePathFromRequest('ORIG_PATH_INFO');
$path = Request::parsePathFromRequest('REDIRECT_URL');
}"

 
Mnkras replied on at Permalink Reply
Mnkras
you should never modify the files in the /concrete directory, copy that file to /libraries then edit it,

did you use the autoupdate or manual update?
SpudR replied on at Permalink Reply
Auto update -

I made the change simply to make it work, but didn't realise that you could make the changes in the manner you've just described - every day is a school day I suppose - thanks :)

I do ALWAYS make backups of any files I change (I have a copy of the DL on my server just in case! - call me paranoid!)

Thanks for helping BTW...
SpudR replied on at Permalink Reply
Anyone??
jbx replied on at Permalink Best Answer Reply
jbx
If you used the auto update, then your concrete folder is now inside the updates folder, so any changes made inside your concrete folder will now be ignored. (Which is why Mnkras correctly pointed out you should always do that.) Try copying the file from inside the updates folder into your libraries folder and see if that helps...

Jon
SpudR replied on at Permalink Reply
Brilliant!
I copied the file into the /libraries dir and made the changes again and it's working again :)

Thanks LOTS!!