# BEGIN [SEO_REDIRECTION]
ErrorDocument 404 /index.php?error=404
# END [SEO_REDIRECTION]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(redirect\.php)
RewriteRule ^(.*)$ redirect.php?l=$1 [L]
The [L] flag causes mod_rewrite to stop processing the rule set. In most contexts, this means that if the rule matches, no further rules will be processed. This corresponds to the last command in Perl, or the break command in C. Use this flag to indicate that the current rule should be applied immediately without considering further rules.
# BEGIN [SEO_REDIRECTION]
ErrorDocument 404 /index.php?error=404
# END [SEO_REDIRECTION]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
</IfModule>
# END WordPress
RewriteEngine On
RewriteCond $1 !^(redirect\.php)
RewriteRule ^(.*)$ redirect.php?l=$1
# BEGIN [SEO_REDIRECTION]
ErrorDocument 404 /index.php?error=404
# END [SEO_REDIRECTION]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
</IfModule>
# END WordPress
RewriteCond $1 !^(redirect\.php)
RewriteRule ^(.*)$ redirect.php?l=$1 [L]
# BEGIN [SEO_REDIRECTION]
ErrorDocument 404 /index.php?error=404
# END [SEO_REDIRECTION]
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(redirect\.php)
RewriteRule ^(.*)$ redirect.php?l=$1
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
RewriteCond %{REQUEST_FILENAME} !-f
означает "если запрошенного файла не существует", аналогичное условие с !-d - то же самое, но применительно к директориями. # BEGIN [SEO_REDIRECTION]
ErrorDocument 404 /index.php?error=404
# END [SEO_REDIRECTION]
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(redirect\.php)
RewriteRule ^(.*)$ redirect.php?l=$1
# BEGIN WordPress
# END WordPress