# imagify/2.2.3.1/classes/Avif/RewriteRules/Nginx.php

Imagify Image Optimization: Optimize Images | Compress &amp; Convert to WebP/AVIF, version 2.2.3.1. 31 lines.

- Page: https://pluginprobe.com/plugins/imagify/2.2.3.1/code/classes/Avif/RewriteRules/Nginx.php
- Raw: https://pluginprobe.com/plugins/imagify/2.2.3.1/raw/classes/Avif/RewriteRules/Nginx.php
- Modified: 2024-03-06T17:27:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/imagify/2.2.3.1/code/classes/Avif/RewriteRules/Nginx.php#L10-L20`.

```php
<?php
declare(strict_types=1);

namespace Imagify\Avif\RewriteRules;

use Imagify\WriteFile\AbstractNginxDirConfFile;

/**
 * Add and remove rewrite rules to the imagify.conf file to display AVIF images on the site.
 */
class Nginx extends AbstractNginxDirConfFile {

	/**
	 * Name of the tag used as block delimiter.
	 *
	 * @var    string
	 */
	const TAG_NAME = 'Imagify: rewrite rules for avif';

	/**
	 * Get unfiltered new contents to write into the file.
	 *
	 * @access protected
	 *
	 * @return string
	 */
	protected function get_raw_new_contents() {
		return '';
	}
}

```
