How to enable pretty urls?

Permalink
Hi all,

I can't seem to get pretty urls to work.

I'm running C5 on my desktop server (localhost) and I've tried editing the .htaccess file to no avail.

(I know rewriting works as I have it working on other CMS installations on my desktop, it just isn't working for c5))

The path to C5 is /www/concrete5/ so it's in a subfolder.

This is what I have in the file


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /localhost/concrete5/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>


I tried www but no luck.

Anyone got any suggestions?

Thanks

 
Mnkras replied on at Permalink Reply
Mnkras
in c5 what did it tell you to put? that should work
mdg replied on at Permalink Reply
Well no it didn't work, that's why I'm asking the question.

Here's what c5 told me to put

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /concrete5/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

As I said, I've tried a few different file paths with no luck.

I also tried putting the .htaccess file in a few different directories.

At the moment the .htaccess file sits in www/concrete5/ on my local machine.

Any suggestions would be appreciated.
mdg replied on at Permalink Reply
OK, got it working.

It was the old problem of how I saved the .htaccess file. (Gets me everytime.)

It looked like it was saved as .htaccess, that's what it said and it had the file extension, but obviously something wasn't right.

All I did was re-save the file and it now works.

Something is different though. Before it showed a name as well as the .htaccess extension. Now it has no name, just the extension.

As I said all I did was re-save it.

Such is life.