After rebuilding my site some URLs (where contents no more exist) have to be redirected to the /index.php. In the older version I had an index.php in the /hu/fulbeloves+fulbevaloval/ directory, that directory does not exist now. I would like to redirect the requests as follows:
- /hu/fulbeloves+fulbevaloval/ => /index.php?q=hu/fulbeloves-fulbevaloval/
- /hu/fulbeloves+fulbevaloval/index.php?placeid=1234 => /index.php?q=hu/fulbeloves-fulbevaloval/index.php?placeid=1234
the first case works properly, but if index.php is in the URL then it fails with 404 (Not Found)
my .htaccess file:
RewriteEngine on
RewriteRule ^(.*)\+(.*)$ /$1-$2 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Thanks for the advices!