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 onRewriteCond %{REQUEST_FILENAME} -f [OR]RewriteCond %{REQUEST_FILENAME} -dRewriteRule ^(.+) - [PT,L]#RewriteRule ^(.+) index.phpErrorDocument 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 writeheader("Location: magentatarrega.com");instead offront_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!