Hi all,
Here's my issue:
I have an Expression Engine installation and I want to remove index.php from the URL by using following method. (Hosting provider says it is the only permitted way on their servers.)
#REMOVE index.php
RewriteEngine on
#RewriteCond $1 !^(images|system|etc...) [NC]
#RewriteRule ^(.*)$ /index.php/$1 [L]
The method above works pretty well alone. Which means that for the URL [
mydomain.com...] I get [
mydomain.com...]
Now I also want to create a redirection.
The following code in my htaccess file aims to redirect all entries to a new directory, called v1. So I write:
#Redirect
RewriteEngine on
RewriteRule ^dir_one/dir_two/(.*)$ http://mydomain.com/dir_zero/dir_one/dir_two/$
This works also perfectly well alone. Which means that I get the redirection I want to:
[
mydomain.com...] redirects to [
mydomain.com...]
However I can't have both codes together. Instead I get a 404 error message. What might be wrong?
Note I am complete idiot when it comes to such issues, so please explain me carefully. Any help would be much appreciated.