<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: WordPress Page Redirect	</title>
	<atom:link href="https://www.shibashake.com/wp/wordpress-page-redirect/feed" rel="self" type="application/rss+xml" />
	<link>https://shibashake.com/wp/wordpress-page-redirect</link>
	<description>Adventures in WordPress</description>
	<lastBuildDate>Mon, 22 Feb 2016 00:25:51 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9</generator>
	<item>
		<title>
		By: Marcelo		</title>
		<link>https://shibashake.com/wp/wordpress-page-redirect/comment-page-1#comment-876707</link>

		<dc:creator><![CDATA[Marcelo]]></dc:creator>
		<pubDate>Mon, 22 Feb 2016 00:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.shibashake.com/wordpress-theme/?p=1724#comment-876707</guid>

					<description><![CDATA[Thanks man, great help.]]></description>
			<content:encoded><![CDATA[<p>Thanks man, great help.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ritshidze		</title>
		<link>https://shibashake.com/wp/wordpress-page-redirect/comment-page-1#comment-222405</link>

		<dc:creator><![CDATA[Ritshidze]]></dc:creator>
		<pubDate>Mon, 11 Aug 2014 09:55:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.shibashake.com/wordpress-theme/?p=1724#comment-222405</guid>

					<description><![CDATA[Thank You]]></description>
			<content:encoded><![CDATA[<p>Thank You</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chris		</title>
		<link>https://shibashake.com/wp/wordpress-page-redirect/comment-page-1#comment-92943</link>

		<dc:creator><![CDATA[Chris]]></dc:creator>
		<pubDate>Mon, 02 Dec 2013 14:53:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.shibashake.com/wordpress-theme/?p=1724#comment-92943</guid>

					<description><![CDATA[Hi,

i tried to redirect a category page but somehow it doesnt work.
i put this code in the functions.php (theme dir)

function _portfolio_plus_redirect( $location, $status ) 
{
    if ( isset($_REQUEST[&#039;category_name&#039;]) &#038;&#038; $_REQUEST[&#039;category_name&#039;] == &#039;portfolio&#039; ) 
    {
      $location = remove_query_arg( &#039;category_name&#039;, $location ); 
      $location = add_query_arg( array( &#039;page&#039; =&#062; &#039;&#039;, &#039;pagename&#039; =&#062; &#039;portfolio&#039; ), $location );    
    }  

    return $location;
}

add_action( &#039;wp_redirect&#039;, &#039;_portfolio_plus_redirect&#039; );]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>i tried to redirect a category page but somehow it doesnt work.<br />
i put this code in the functions.php (theme dir)</p>
<p>function _portfolio_plus_redirect( $location, $status )<br />
{<br />
    if ( isset($_REQUEST[&#8216;category_name&#8217;]) &amp;&amp; $_REQUEST[&#8216;category_name&#8217;] == &#8216;portfolio&#8217; )<br />
    {<br />
      $location = remove_query_arg( &#8216;category_name&#8217;, $location );<br />
      $location = add_query_arg( array( &#8216;page&#8217; =&gt; &#8221;, &#8216;pagename&#8217; =&gt; &#8216;portfolio&#8217; ), $location );<br />
    }  </p>
<p>    return $location;<br />
}</p>
<p>add_action( &#8216;wp_redirect&#8217;, &#8216;_portfolio_plus_redirect&#8217; );</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Gert-Jan		</title>
		<link>https://shibashake.com/wp/wordpress-page-redirect/comment-page-1#comment-28219</link>

		<dc:creator><![CDATA[Gert-Jan]]></dc:creator>
		<pubDate>Thu, 04 Oct 2012 06:56:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.shibashake.com/wordpress-theme/?p=1724#comment-28219</guid>

					<description><![CDATA[I tried to do 301&#039;s in a more hardcoded kind of style, but using the filter approach definately looks like the best approach to do 301&#039;s. Works like a charm, thanks and kudos to you!]]></description>
			<content:encoded><![CDATA[<p>I tried to do 301&#8217;s in a more hardcoded kind of style, but using the filter approach definately looks like the best approach to do 301&#8217;s. Works like a charm, thanks and kudos to you!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ShibaShake		</title>
		<link>https://shibashake.com/wp/wordpress-page-redirect/comment-page-1#comment-8510</link>

		<dc:creator><![CDATA[ShibaShake]]></dc:creator>
		<pubDate>Tue, 22 Nov 2011 19:20:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.shibashake.com/wordpress-theme/?p=1724#comment-8510</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://shibashake.com/wp/wordpress-page-redirect/comment-page-1#comment-8145&quot;&gt;Anime&lt;/a&gt;.

If you want to do a permanent redirect, I would use .htaccess.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://shibashake.com/wp/wordpress-page-redirect/comment-page-1#comment-8145">Anime</a>.</p>
<p>If you want to do a permanent redirect, I would use .htaccess.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Anime		</title>
		<link>https://shibashake.com/wp/wordpress-page-redirect/comment-page-1#comment-8145</link>

		<dc:creator><![CDATA[Anime]]></dc:creator>
		<pubDate>Wed, 09 Nov 2011 08:21:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.shibashake.com/wordpress-theme/?p=1724#comment-8145</guid>

					<description><![CDATA[How would one go about redirecting the Site address under the &quot;general&quot; tab? I want to redirect domain.com/ to domain.com/word - how would one go about 301&#039;ing that? use .htaccess or?]]></description>
			<content:encoded><![CDATA[<p>How would one go about redirecting the Site address under the &#8220;general&#8221; tab? I want to redirect domain.com/ to domain.com/word &#8211; how would one go about 301&#8217;ing that? use .htaccess or?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Add filename to attachment page url &#124; SeekPHP.com		</title>
		<link>https://shibashake.com/wp/wordpress-page-redirect/comment-page-1#comment-6366</link>

		<dc:creator><![CDATA[Add filename to attachment page url &#124; SeekPHP.com]]></dc:creator>
		<pubDate>Tue, 23 Aug 2011 23:50:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.shibashake.com/wordpress-theme/?p=1724#comment-6366</guid>

					<description><![CDATA[[...] a WordPress modification per se, but if you prefer to do it that way, here is a decent tutorial: http://shibashake.com/wordpress-theme/wordpress-page-redirect. Some people would, however, prefer to do this via the .htaccess file, here is a quick guide on how [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] a WordPress modification per se, but if you prefer to do it that way, here is a decent tutorial: <a href="http://shibashake.com/wordpress-theme/wordpress-page-redirect" rel="nofollow ugc">http://shibashake.com/wordpress-theme/wordpress-page-redirect</a>. Some people would, however, prefer to do this via the .htaccess file, here is a quick guide on how [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ShibaShake		</title>
		<link>https://shibashake.com/wp/wordpress-page-redirect/comment-page-1#comment-3094</link>

		<dc:creator><![CDATA[ShibaShake]]></dc:creator>
		<pubDate>Thu, 20 Jan 2011 17:05:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.shibashake.com/wordpress-theme/?p=1724#comment-3094</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://shibashake.com/wp/wordpress-page-redirect/comment-page-1#comment-3089&quot;&gt;swaan&lt;/a&gt;.

I purposely did it to see if people were paying attention. ;)

Thanks for letting me know. It is fixed. :D]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://shibashake.com/wp/wordpress-page-redirect/comment-page-1#comment-3089">swaan</a>.</p>
<p>I purposely did it to see if people were paying attention. 😉</p>
<p>Thanks for letting me know. It is fixed. 😀</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: swaan		</title>
		<link>https://shibashake.com/wp/wordpress-page-redirect/comment-page-1#comment-3089</link>

		<dc:creator><![CDATA[swaan]]></dc:creator>
		<pubDate>Thu, 20 Jan 2011 09:21:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.shibashake.com/wordpress-theme/?p=1724#comment-3089</guid>

					<description><![CDATA[So here I am searching for methods to log and convert 404 urls into 301 redirects and your first link in the article returns a 404 :D :D]]></description>
			<content:encoded><![CDATA[<p>So here I am searching for methods to log and convert 404 urls into 301 redirects and your first link in the article returns a 404 😀 😀</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ShibaShake		</title>
		<link>https://shibashake.com/wp/wordpress-page-redirect/comment-page-1#comment-1064</link>

		<dc:creator><![CDATA[ShibaShake]]></dc:creator>
		<pubDate>Mon, 15 Feb 2010 16:28:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.shibashake.com/wordpress-theme/?p=1724#comment-1064</guid>

					<description><![CDATA[You can just use the wp_redirect command if your headers are not sent out yet.

Just add it to the functions.php file of your theme or child theme.
&lt;pre lang=&quot;PHP&quot;&gt;
if (check_for_something()) {
   wp_redirect(&#039;http://www.newlocation.com&#039;);
}
&lt;/pre&gt;

The location for wp_redirect has to be an absolute url.]]></description>
			<content:encoded><![CDATA[<p>You can just use the wp_redirect command if your headers are not sent out yet.</p>
<p>Just add it to the functions.php file of your theme or child theme.</p>
<pre lang="PHP">
if (check_for_something()) {
   wp_redirect('http://www.newlocation.com');
}
</pre>
<p>The location for wp_redirect has to be an absolute url.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Page Caching using disk: enhanced 
Content Delivery Network via Amazon Web Services: CloudFront: cdn.shibashake.com
Minified using disk
Database Caching using disk (Request-wide modification query)

Served from: www.shibashake.com @ 2026-07-06 11:32:55 by W3 Total Cache
-->