Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Custom permalink (clean url)
Hello~,
how do I make a custom permalink? IMO the /section/id should be included by default, but I’m sure the developers have their reasons for not adding this one.
Anyone able to help me with the PHP code or .htaccess directives needed to set this up?
Thank you in advance,
Offline
#2 2006-09-08 23:22:20
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Custom permalink (clean url)
Can you elaborate please? Textpattern has /section/id/title URLs built in already.
Alex
Offline
Re: Custom permalink (clean url)
True, but I would like a /section/id since it looks “cleaner” than having the title included as well. I’ve tried using the /section/id/title in various other projects, but ended up using /section/title instead because it’s easier to link.
But having my clients try to make “unique” headers for each and every post can be hard since they have douzins of posters.
Offline
Re: Custom permalink (clean url)
You should still be able to link to /section/id and have it work. I did that in the past. Both /section/id and /section/id/title are indexed by search engines, which may be a problem (duplicate listings).
Offline
#5 2006-09-10 16:27:52
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Custom permalink (clean url)
You should still be able to link to /section/id and have it work.
That’s correct.
Offline
#6 2006-09-10 23:01:27
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Custom permalink (clean url)
You can change the url-title on individual articles to anything you want, including an empty string. There’s also an “Attach titles to permalinks?” setting in Advanced Prefs.
Alex
Offline
Re: Custom permalink (clean url)
zem wrote:
You can change the url-title on individual articles to anything you want, including an empty string. There’s also an “Attach titles to permalinks?” setting in Advanced Prefs.
Thank you, that’s the thing I was looking for. My client shouldn’t have to worry about details like the permalink title, and the post ID should be sufficent for this project.
Now to see if I can find a viable way to show a gallery.
Offline
Pages: 1