Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
need help with mod_rewrite
how would i do a redirect from /this
to /this/that
? textpattern must still process it though. meaning this
and that
aren’t actual folders. this
is a section and the rest is done by an extension so it’s neither category nor article.
i tried to add:
RewriteRule ^/this$ /this/that
to my htaccess file (just below RewriteEngine On
) but that didn’t work. also tried numerous other things and kept removing it back and forth without success. the results vary between “nothing happens”, 404 (not the txp one) and 500.
i’ve also thought about using something like:
<txp:if_section name="this"> <txp:php>...php redirect here...</txp:php> </txp:if_section>
but obviously, as we’re staying in the same section this is causing another internal server error.
any ideas?
disclaimer: i’ve been using zem_redirect pro to achieve this before, but unfortunately this no longer an option…
Offline
Pages: 1