Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-06-08 16:18:07

MattH
Member
From: Ann Arbor, MI
Registered: 2004-10-17
Posts: 30

Setting up a second .htaccess redirect?

I have clean URLS on and working perfectly in the /section/title format;

I’d like to set up a second URL scheme that also displays the correct section for anything of the pattern: “/artists/section”

In effect, this would be like specifying two root URLs, / and /artists.

For example, /artists/artistname would display the content /index.php?section=artistname

Offline

#2 2009-06-08 21:37:52

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Setting up a second .htaccess redirect?

Have a look at gbp_permanent_links.

Offline

#3 2009-06-08 22:08:44

MattH
Member
From: Ann Arbor, MI
Registered: 2004-10-17
Posts: 30

Re: Setting up a second .htaccess redirect?

Thanks Els, that worked perfectly.

For the record / anyone searching later, here’s what I did after installing the plugin:

artists/[section]/ (precedence 0)
artists/ (precedence 1) (precedence 2, to preserve old links)

Without that last rule, everything ended up linking to artists/[title]

Offline

Board footer

Powered by FluxBB