<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Serov.eu &#187; .htaccess</title>
	<atom:link href="https://serov.eu/?feed=rss2&#038;tag=htaccess" rel="self" type="application/rss+xml" />
	<link>https://serov.eu</link>
	<description>Блог программиста</description>
	<lastBuildDate>Thu, 30 Apr 2026 12:31:53 +0000</lastBuildDate>
	<language>ru-RU</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.15</generator>
	<item>
		<title>избавляемся от двойного редиректа</title>
		<link>https://serov.eu/?p=523</link>
		<comments>https://serov.eu/?p=523#comments</comments>
		<pubDate>Sun, 15 Mar 2020 10:14:31 +0000</pubDate>
		<dc:creator><![CDATA[Evgen]]></dc:creator>
				<category><![CDATA[Программирование]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[https]]></category>

		<guid isPermaLink="false">https://serov.eu/?p=523</guid>
		<description><![CDATA[DirectorySlash Off # Allow mod_rewrite to function when there is no trailing slash RewriteOptions AllowNoSlash RewriteEngine On RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{REQUEST_URI} !(.*)/$ # RewriteRule ^(.*)$ $1/ [L,R=301] RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}/ [L,R=301]]]></description>
				<content:encoded><![CDATA[<p><code><br />
    DirectorySlash Off</p>
<p>    # Allow mod_rewrite to function when there is no trailing slash<br />
    RewriteOptions AllowNoSlash</p>
<p>  RewriteEngine On<br />
  RewriteCond %{REQUEST_FILENAME} -d<br />
  RewriteCond %{REQUEST_URI} !(.*)/$<br />
  # RewriteRule ^(.*)$ $1/ [L,R=301]<br />
  RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}/ [L,R=301]</p>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>https://serov.eu/?feed=rss2&#038;p=523</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Когда нужно закрыть или открыть доступ только к некоторым мельти  доменам</title>
		<link>https://serov.eu/?p=519</link>
		<comments>https://serov.eu/?p=519#comments</comments>
		<pubDate>Sat, 29 Feb 2020 11:15:40 +0000</pubDate>
		<dc:creator><![CDATA[Evgen]]></dc:creator>
				<category><![CDATA[Программирование]]></category>
		<category><![CDATA[.htaccess]]></category>

		<guid isPermaLink="false">https://serov.eu/?p=519</guid>
		<description><![CDATA[.htaccess: SetEnvIfNoCase Host s4\.yandex\.ru$ require_auth=true SetEnvIfNoCase Host s54\.yandex\.ru$ require_auth=true AuthType Basic AuthName &#171;Access to the staging site&#187; AuthUserFile /data/www/yandex.ru/.htpasswd Require valid-user # Setup a deny/allow Order Deny,Allow # Deny from everyone Deny from all # except if either of these are satisfied Satisfy any # 1. a valid authenticated user Require valid-user # or 2. &#8230; <a href="https://serov.eu/?p=519" class="more-link">Читать далее <span class="screen-reader-text">Когда нужно закрыть или открыть доступ только к некоторым мельти  доменам</span></a>]]></description>
				<content:encoded><![CDATA[<p><code></code><br />
.htaccess:</p>
<p>SetEnvIfNoCase Host s4\.yandex\.ru$ require_auth=true<br />
SetEnvIfNoCase Host s54\.yandex\.ru$ require_auth=true</p>
<p>AuthType Basic<br />
AuthName &#171;Access to the staging site&#187;<br />
AuthUserFile /data/www/yandex.ru/.htpasswd<br />
Require valid-user</p>
<p># Setup a deny/allow<br />
Order Deny,Allow<br />
# Deny from everyone<br />
Deny from all<br />
# except if either of these are satisfied<br />
Satisfy any<br />
# 1. a valid authenticated user<br />
Require valid-user<br />
# or 2. the &#171;require_auth&#187; var is NOT set<br />
#Allow from env=!require_auth<br />
Allow from env=require_auth</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://serov.eu/?feed=rss2&#038;p=519</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Когда sitemap.xml нужно обработать как PHP</title>
		<link>https://serov.eu/?p=514</link>
		<comments>https://serov.eu/?p=514#comments</comments>
		<pubDate>Sat, 29 Feb 2020 11:11:51 +0000</pubDate>
		<dc:creator><![CDATA[Evgen]]></dc:creator>
				<category><![CDATA[Программирование]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">https://serov.eu/?p=514</guid>
		<description><![CDATA[.htaccess: &#60;Files "sitemap.xml"&#62; AddHandler application/x-httpd-php .xml &#60;/Files&#62; &#160;]]></description>
				<content:encoded><![CDATA[<p><code><br />
.htaccess:</p>
<p>&lt;Files "sitemap.xml"&gt;<br />
AddHandler application/x-httpd-php .xml<br />
&lt;/Files&gt;</p>
<p>&nbsp;</p>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>https://serov.eu/?feed=rss2&#038;p=514</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Change your Default Index Page in .htaccess</title>
		<link>https://serov.eu/?p=244</link>
		<comments>https://serov.eu/?p=244#comments</comments>
		<pubDate>Thu, 08 Feb 2018 09:56:01 +0000</pubDate>
		<dc:creator><![CDATA[Evgen]]></dc:creator>
				<category><![CDATA[Программирование]]></category>
		<category><![CDATA[.htaccess]]></category>

		<guid isPermaLink="false">https://serov.eu/?p=244</guid>
		<description><![CDATA[Сменить индексный файл DirectoryIndex first.html index.htm index.html index.php]]></description>
				<content:encoded><![CDATA[<p>Сменить индексный файл<br />
<code><br />
DirectoryIndex first.html index.htm index.html index.php<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>https://serov.eu/?feed=rss2&#038;p=244</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
