Jump to content

Deleted Category Redirects instead of 404


Recommended Posts

Hi Does anyone know how to hard code a 404 error for a category that's been deleted. The category should go to a 404.php page but instead goes 302 Moved Temporarily and then redirects to index.php?controller=404.

 

Need the deleted page to give a 404 error so that its been removed not a redirect.

 

Have tried adding: ErrorDocument 404 /404.php to the .htaccess file but doesn't work.

 

Also tried;

 

<IfModule mod_rewrite.c>
     # Turn on rewrite engine
     RewriteEngine on
     # Force 404 on page detection
     ErrorDocument 404 /404.php
     RewriteRule ^(.*)/8-crystal-glass$ - [R=404,NC,L]
</IfModule>
 
but that doesn't work either.
 
Does anyone know how I can force this deleted category to throw a 404 error instead of a redirect.
 
Its needed to delete a lot of incoming links to that page.
 
Any advice would be much appreciated.
 
 
 
Link to comment
Share on other sites

×
×
  • Create New...