Hi, i have tried to set the 404 error by .htaccess but it wasn't working properly.
When the URL was something like magentatarrega.com/… but when it was something like magentatarrega.com/index.php/album-1/subalbum-b/ (a old exhibit i created 2 weeks ago) it was not working, redirecting me to a normal 404 error message.
This was my .htaccess:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
#RewriteRule ^(.+) index.php
ErrorDocument 404 magentatarrega.com
So, as it was not working i asked my hosting (dreamhost) what to do, and they give me a solution that may be will give me problems in the future. The solution was to edit index.php file and write
header("Location: magentatarrega.com");
instead of
front_error('File Not Found', 404);
Is this a proper way to a 404 error redirection? It works, but i'm not sure it will always work... what do you think? thanks!