Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-03-27 10:20:18
- bartekk
- Member
- Registered: 2004-11-09
- Posts: 57
move from pixelpost to textpattern (htaccess redirect problems)
hi,
I moved my photoblog from pixelpost to textpattern and add some redirect rules to the htaccess file.
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
<IfModule mod_rewrite.c>
RewriteEngine On
Redirect /index.php?showimage=21 http://www.meinedomain.de/2004/09/19/pepper
Redirect /index.php?showimage=22 http://www.meinedomain.de/2004/09/22/water
Redirect /index.php?showimage=23 http://www.meinedomain.de/2005/04/13/london
Redirect /index.php?showimage=14 http://www.meinedomain.de/2005/05/25/john
Redirect /index.php?showimage=24 http://www.meinedomain.de/2005/06/20/drink
Redirect /index.php?x=browse http://www.meinedomain.de/archive
Redirect /index.php?x=about http://www.meinedomain.de/about
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^tag/(.+)/$ ?s=tag&t=$1
RewriteRule ^(.*) index.php
</IfModule>
#php_value register_globals 0
this rules refers only to the default page and not to the specific url.
someone has an idea?
Offline
Re: move from pixelpost to textpattern (htaccess redirect problems)
Add a [P] after each RewriteRule:
Redirect /index.php?showimage=21 http://www.meinedomain.de/2004/09/19/pepper [P]
Redirect /index.php?showimage=22 http://www.meinedomain.de/2004/09/22/water [P]
This only works if your hosting has the mod_proxy module active.
Offline
Re: move from pixelpost to textpattern (htaccess redirect problems)
With the previous system, the new URL are “hidden”. If you prefer a redirect, then:
Redirect /index.php?showimage=21 http://www.meinedomain.de/2004/09/19/pepper [R]
Redirect /index.php?showimage=22 http://www.meinedomain.de/2004/09/22/water [R]
Offline
#4 2007-03-27 12:08:56
- bartekk
- Member
- Registered: 2004-11-09
- Posts: 57
Re: move from pixelpost to textpattern (htaccess redirect problems)
hi juanjonavarro,
thanks for the hint. I tried it but I get a 500 inetrnal error with a [P] or ® at the and.
and yes I have mod_proxy active.
Offline
#5 2007-03-27 12:18:28
- bartekk
- Member
- Registered: 2004-11-09
- Posts: 57
Re: move from pixelpost to textpattern (htaccess redirect problems)
I tied it with something like this:
Redirect /myredirect http://www.meinedomain.de/2004/09/19/pepper
and it woks perfectly. I thing the problem is the index.php in the old url.
I think this rule “RewriteRule ^(.*) index.php” is overwriting also the redirect method
Offline