Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2011-01-18 20:38:42
- fhd
- Member
- Registered: 2009-11-01
- Posts: 13
Redirect from front page to section
Hi,
my website used to be a pure blog, but I’m planning to add a bit more content. Hence I’ve got more than one section, and front page and “blog” section are no longer supposed to be exactly the same.
In fact, I do not want to use a front page at all – I want http://example.com to redirect to http://example.com/blog. http://example.com/foo, however, should not redirect to the blog.
I’ve tried it with aks_header, uncuccessfully:
<txp:aks_301 start="/" url="/blog"/>
This does redirect the front page to the blog, but it also redirects every other page to it, which I do not want.
How can I achieve what I want?
Edit:
Here’s some more details:
I’m using a .htaccess redirect right now, like this:
RedirectMatch ^/$ http://example.com/blog [L]
But I’m still wondering if Textpattern can do this on its own.
Last edited by fhd (2011-01-18 20:53:14)
Offline
Re: Redirect from front page to section
Hi.
Have you tried this?
<txp:if_section name="default"><txp:aks_301 start="/" url="/blog"/></txp:if_section>
Offline
Re: Redirect from front page to section
Also check out the short thread redirect 301…
Last edited by merz1 (2011-01-21 10:12:52)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
Pages: 1