Hi, i’ve been searching and searching some redirections issues.
My htaccess is build to mask the index.php in URL
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/iceberg/.* [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]
# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L][/code]
But some old links are not redirected correctly.
I've got this exemple :
[code]RewriteRule ^index.php?/communiquer/article/1033/ http://www.mywebsite.com/archives/archives/article/1033 [R=301,L]
This line is written BEFORE the EE rewrite rule, so it should do the work.
instead i’ve got this :
www.mywebsite.com/index.php?/communiquer/article/1033/ redirect 301 www.mywebsite.com/?/communiquer/article/1033/ with a 404 !
If i put this line AFTER the EE rewrite rule, same thinh happens If i change the rewrite rule with
RedirectPermanent /?/communiquer/article/1033/ http://www.mywebsite.com/archives/archives/article/1033
AFTER or BEFORE EE rewrite rule, same thing happens…
Any idea how i can get a proper redirection of old URI ?
Thanks.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.