Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-20 00:16:30

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

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

Board footer

Powered by FluxBB