URI with filename extension instead of directories

Permalink
Hey all,

I'm curious to know how can that be done:

a concrete5 website use directory URI structure like:

/site/subsection/text-of-the-page/etc...

How can I always take the last element of the URI and make it like a filename instead?

/site/subsection/text-of-the-page.html for example

adding .html automaticly ?

olacom
 
DavidMIRV replied on at Permalink Reply
DavidMIRV
You could probably achieve that with mod rewrite to strip out the .html extension . I guess you just want all your urls to have .html . I don't see why ,totally old school but to each their own :D
olacom replied on at Permalink Reply
olacom
It will work if you type the adress directly but for all the pagelist, autonav URI generated. it wont match a particular rule setup.

If I said:

If I want to take that URL:
www.www.domain.com/subpage/helloworld...

RewriteRule ^(.*)$ index.php/subpage/$1 [L]


Typing http://www.domain.com/helloworld will work but concrete autonav, pagelist,etc. will still generate : www.www.domain.com/subpage/hellworld... and it will be not found.

It would be nice to have have suffix and more option for URI with PrettyUrl.