I'm new to couch but so far I have found it to be really great, I just need some help figuring out a couple problems.
1. I am using a template within a folder to create new articles so I have site.com/articles/game/gamearticlecms.php as my template, but with pretty urls it redirects to site.com/articles/game/gamearticlecms/article-name however I'd like it to redirect to site.com/articles/game/article-name
2. I would like to remove the .html from the url. I know this is possible with a regular html site using some code similar to below:
so I would think it would be possible to implement this for a couch article.
I know this is all really technical but I hope someone can give some advice on how to proceed.
Thanks!
1. I am using a template within a folder to create new articles so I have site.com/articles/game/gamearticlecms.php as my template, but with pretty urls it redirects to site.com/articles/game/gamearticlecms/article-name however I'd like it to redirect to site.com/articles/game/article-name
2. I would like to remove the .html from the url. I know this is possible with a regular html site using some code similar to below:
- Code: Select all
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.html$ /$1 [L,R=301]
so I would think it would be possible to implement this for a couch article.
I know this is all really technical but I hope someone can give some advice on how to proceed.
Thanks!