Problem DescriptionHi,The current setting of my .htaccess file does not allow any kind of 404 (as far as I know). I mean, it captures every kind of url like mysite.com/asfasfasf then sends it to index.php?lang=asfasfasf then index.php 301-redirects to mysite.com/en. Anyway,QuestionI have a gallery page which takes project name as an input, so if a nasty user comes and types mysite.com/gallery/asfasfasf, I should redirect them to my 404.php page, using php, but how?I think my options are :301-redirect to location 404.php404-redirect to location '404.php'Forget about 404.php, just print project asfasfasf does not exist. on the gallery page.??Which one makes most sense? More importantly, which one is best for SEO ?Thanks for any help!
Does it make sense to throw a 404 error with PHP?
seo;php;htaccess;301 redirect;404