<?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>redirect Архиви - rosen4o.net</title>
	<atom:link href="https://rosen4o.net/tag/redirect/feed/" rel="self" type="application/rss+xml" />
	<link>https://rosen4o.net/tag/redirect/</link>
	<description></description>
	<lastBuildDate>Mon, 30 May 2016 15:08:52 +0000</lastBuildDate>
	<language>bg-BG</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>Redirect all php files to wordpress posts or strip .php extension</title>
		<link>https://rosen4o.net/2016/05/30/redirect-all-php-files-to-wordpress-posts-or-strip-php-extension/</link>
					<comments>https://rosen4o.net/2016/05/30/redirect-all-php-files-to-wordpress-posts-or-strip-php-extension/#respond</comments>
		
		<dc:creator><![CDATA[rosen4o]]></dc:creator>
		<pubDate>Mon, 30 May 2016 15:08:52 +0000</pubDate>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[redirect]]></category>
		<guid isPermaLink="false">http://rosen4o.net/?p=1059</guid>

					<description><![CDATA[<p>If you need to redirect your old urls which are like alabala.com/see-this-post.php to alabala.com/see-this-post/ You can use this simple .htaccess redirect RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)\.php$ /$1/ [l,R=301,NC]</p>
<p>Материалът <a href="https://rosen4o.net/2016/05/30/redirect-all-php-files-to-wordpress-posts-or-strip-php-extension/">Redirect all php files to wordpress posts or strip .php extension</a> е публикуван за пръв път на <a href="https://rosen4o.net">rosen4o.net</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you need to redirect your old urls which are like</p>
<blockquote><p>alabala.com/see-this-post.php to alabala.com/see-this-post/</p></blockquote>
<p>You can use this simple .htaccess redirect</p>
<blockquote><p>
RewriteEngine On<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteRule ^(.*)\.php$ /$1/ [l,R=301,NC]</p></blockquote>
<p>Материалът <a href="https://rosen4o.net/2016/05/30/redirect-all-php-files-to-wordpress-posts-or-strip-php-extension/">Redirect all php files to wordpress posts or strip .php extension</a> е публикуван за пръв път на <a href="https://rosen4o.net">rosen4o.net</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://rosen4o.net/2016/05/30/redirect-all-php-files-to-wordpress-posts-or-strip-php-extension/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>wordpress strange redirect</title>
		<link>https://rosen4o.net/2016/03/14/wordpress-strange-redirect/</link>
					<comments>https://rosen4o.net/2016/03/14/wordpress-strange-redirect/#respond</comments>
		
		<dc:creator><![CDATA[rosen4o]]></dc:creator>
		<pubDate>Mon, 14 Mar 2016 17:26:58 +0000</pubDate>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[cyrillic]]></category>
		<category><![CDATA[lowercase]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[uppercase]]></category>
		<guid isPermaLink="false">http://rosen4o.net/?p=1054</guid>

					<description><![CDATA[<p>WordPress is using lowercase in all urls but when someone types the url in the address bar then browser uses uppercase to encode url Uppercase is different from lowercase and wordpress can&#8217;t match url So solution is very simply This<span class="ellipsis">&#8230;</span></p>
<div class="read-more"><a href="https://rosen4o.net/2016/03/14/wordpress-strange-redirect/">Прочетете повече ›</a></div>
<p><!-- end of .read-more --></p>
<p>Материалът <a href="https://rosen4o.net/2016/03/14/wordpress-strange-redirect/">wordpress strange redirect</a> е публикуван за пръв път на <a href="https://rosen4o.net">rosen4o.net</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>WordPress is using lowercase in all urls but when someone types the url in the address bar then browser uses uppercase to encode url</p>
<p>Uppercase is different from lowercase and wordpress can&#8217;t match url</p>
<p>So solution is very simply</p>
<p>This fragment need to be pasted in functions.php</p>
<blockquote>
<pre><code>function unFocus_insensitivity() {
    if (preg_match('/[A-ZА-Я]/', $_SERVER['REQUEST_URI'])) {
        $_SERVER['REQUEST_URI'] = strtolower($_SERVER['REQUEST_URI']);
        $_SERVER['PATH_INFO']   = strtolower($_SERVER['PATH_INFO']);
    }
}
add_action('init', 'unFocus_insensitivity');
</code></pre>
</blockquote>
<p>Code is working for Latin and Cyrillic letters</p>
<p>Материалът <a href="https://rosen4o.net/2016/03/14/wordpress-strange-redirect/">wordpress strange redirect</a> е публикуван за пръв път на <a href="https://rosen4o.net">rosen4o.net</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://rosen4o.net/2016/03/14/wordpress-strange-redirect/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
