---
title: Exclude URL starting with specific values from 404 monitoring
url: "https://www.seopress.org/support/hooks/exclude-url-starting-with-specific-values-from-404-monitoring/"
lang: en-US
updated: 2021-09-29
hook_name: seopress_404_exclude
required_version: 3.2
---

# Exclude URL starting with specific values from 404 monitoring

- **Hook name:** `seopress_404_exclude`
- **Required version:** 3.2

```php
add_filter('seopress_404_exclude','sp_pro_404_exclude'); 
function sp_pro_404_exclude($array) { 
	//URL starting with, to exclude (default: "wp-content/cache") 
	$array[] = 'wp-content/themes'; 
	return $array; 
}
```

Source: [https://gist.github.com/wp-seopress/86c9c02913ae3f3f67164295914bc6d5](https://gist.github.com/wp-seopress/86c9c02913ae3f3f67164295914bc6d5)



