Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-07-06 14:10:38

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 252
Website

Page url without section/

Hello,
I have a website where there are article within sections, like www.myweb.it/school/languages
I also have articles which would be nice to have outside the section scope, like www.myweb.it/myarticle
Is that feasible?

Thank you very much

Offline

#2 2011-07-06 14:48:38

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Page url without section/

You could try gbp_permanent_links plugin. With it you could try to create a global permlink rule of /title which would handle the section-less articles, and then create section specific rules for the rest that need the section part. Can get messy, and getting gasp of the plugin might be hard.

You could also try some basic rewrite rules executed by Apache. For example if every article has an unique title, you could set TXP’s permlink scheme to /title and then create faux rewrite rules that redirect request from /section/title to /title.

Offline

Board footer

Powered by FluxBB