Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi,

Firstly, credit to you guys for creating CouchCMS. I'm just starting up a web design agency and have found this to be the perfect CMS for me and my clients. Easy to use, extremely customizable and lightweight.

I'm currently finishing off my website and I'm looking at the pretty URLs. I must say I'm not keen on removing the file extension from the URL and would much rather have my pages displayed with a .html extension. I achieved this in my .HTACCESS with the following code

Code: Select all
RewriteEngine on  
RewriteBase /

RewriteCond %{THE_REQUEST} (.*)\.php 
RewriteRule ^(.*)\.php $1.html [R=301,L] 

RewriteCond %{THE_REQUEST} (.*)\.html 
RewriteRule ^(.*)\.html $1.php [L]


This all works fine but it seems I have to sacrifice the Pretty URLs in the cloned blog pages.

So my question is Can I use CouchCMS' Pretty URLs only on the pages being created by the blog?

Please visit http://www.freelancepixels.uk/blog.html and click on the 'Welcome' blog post to see what I mean. The URL is currently http://www.freelancepixels.uk/blog.html?p=10 and I would prefer http://www.freelancepixels.uk/blog/welcome.html

Hopefully that all makes sense and thank you in advance!

P.S On a side note I have also nearly finished creating a responsive layout for CouchCMS if this is something you would be interested in?

Regards.
Pretty urls when enabled normally show the .html extension on cloned pages. It can not show extension on folders or list-views. Like this:
Examples out of the box:
example.com/blog/
example.com/blog/my-first-post.html

Do you still absolutely need to show list-views as example.com/blog.html?
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Hi trendoman,

Thanks for the response. I did think that may be the case.

The fall back of this would be to apply the pretty URLS script to the blog as a whole which is fine but I get a bit anal about consistency :D

Is there any way to apply the pretty URLS only to the cloned pages of the blog by modifying the .HTACCESS script or something? If not I think i'll just use the fall back.

Thanks again.
3 posts Page 1 of 1