Hi all,
Here comes a quite complicated issue.
I remove index.php from my website by using the Exclude method. Hosting provider (Engine Hosting) says it is the only permitted way on their servers.
Now I also want to create a redirection.
The following code in my htaccess file aims to redirect all entries in template_group/template_name to a new directory, called v1. So I write:
#Redirect
RewriteEngine on
RewriteRule ^template_group/template_name/(.*)$ <a href="http://mydomain.com/v1/index.php/template_group/template_name/$1">http://mydomain.com/v1/index.php/template_group/template_name/$1</a>This works perfectly well alone. But it doesn’t work with the code for the Exclude method.
- If I put first the code above I get a 302 Found error.
- If I put first Exclude method code (without the final [L] which signifies the last rule to execute) I get a 404 page.
I know it is not simple but I hope for a solution. Any help would be much appreciated.
(We’re talking about 2 installations of EE. mydomain.com uses EE 2.1 and in v1 directory there’s an 1.6.8 installation.)
[Mod Edit: Moved to the CodeShare Corner forum]