<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Comments for page &quot;404 (Page does not exist) Redirect&quot;</title>
		<link>http://snippets.wikidot.com/forum/t-536479/404-page-does-not-exist-redirect</link>
		<description>Posts in the discussion thread &quot;404 (Page does not exist) Redirect&quot;</description>
				<copyright></copyright>
		<lastBuildDate>Wed, 22 Jul 2026 20:24:06 +0000</lastBuildDate>
		
					<item>
				<guid>http://snippets.wikidot.com/forum/t-536479#post-5006213</guid>
				<title>(no title)</title>
				<link>http://snippets.wikidot.com/forum/t-536479/404-page-does-not-exist-redirect#post-5006213</link>
				<description></description>
				<pubDate>Wed, 16 Jun 2021 05:58:46 +0000</pubDate>
								<wikidot:authorUserId>7460495</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I like the 404 redirect and I went to this page (<a href="http://ktsangsb.wikidot.com/npr:pageexist">http://ktsangsb.wikidot.com/npr:pageexist</a>) and put the numbers and deleted the number and put it where it was. So yea, I hope I didn't broke the code. I don't know if the page is locked or not.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://snippets.wikidot.com/forum/t-536479#post-1602266</guid>
				<title>(no title)</title>
				<link>http://snippets.wikidot.com/forum/t-536479/404-page-does-not-exist-redirect#post-1602266</link>
				<description></description>
				<pubDate>Tue, 30 Oct 2012 19:55:57 +0000</pubDate>
				<wikidot:authorName>EricT</wikidot:authorName>				<wikidot:authorUserId>245879</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Got it going. Thanks!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://snippets.wikidot.com/forum/t-536479#post-1561013</guid>
				<title>(no title)</title>
				<link>http://snippets.wikidot.com/forum/t-536479/404-page-does-not-exist-redirect#post-1561013</link>
				<description></description>
				<pubDate>Mon, 10 Sep 2012 08:01:43 +0000</pubDate>
				<wikidot:authorName>RobElliott</wikidot:authorName>				<wikidot:authorUserId>111301</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Sorry for being slow to test this. Yes it now works fine on my SSL site. Thanks.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://snippets.wikidot.com/forum/t-536479#post-1558096</guid>
				<title>(no title)</title>
				<link>http://snippets.wikidot.com/forum/t-536479/404-page-does-not-exist-redirect#post-1558096</link>
				<description></description>
				<pubDate>Thu, 06 Sep 2012 22:37:10 +0000</pubDate>
				<wikidot:authorName>tsangk</wikidot:authorName>				<wikidot:authorUserId>47197</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yes, it appears to be an SSL issue. The iframe included was set with <tt>http://</tt>. I've fixed this now. Please test :)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://snippets.wikidot.com/forum/t-536479#post-1557720</guid>
				<title>(no title)</title>
				<link>http://snippets.wikidot.com/forum/t-536479/404-page-does-not-exist-redirect#post-1557720</link>
				<description></description>
				<pubDate>Thu, 06 Sep 2012 14:18:22 +0000</pubDate>
				<wikidot:authorName>RobElliott</wikidot:authorName>				<wikidot:authorUserId>111301</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>No it's not working. As soon as I press the newpage button snippet instead of taking me into the dataform it re-directs me. I want that bit but the user needs to edit the dataform first. It works on your site, the community site and several of my other sites. The only difference here is that the site is an SSL site, could that be the problem?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://snippets.wikidot.com/forum/t-536479#post-1557700</guid>
				<title>(no title)</title>
				<link>http://snippets.wikidot.com/forum/t-536479/404-page-does-not-exist-redirect#post-1557700</link>
				<description></description>
				<pubDate>Thu, 06 Sep 2012 13:45:14 +0000</pubDate>
				<wikidot:authorName>RobElliott</wikidot:authorName>				<wikidot:authorUserId>111301</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>There's a newpage-button snippet on a page and I want to take them back there if they click cancel. But I must have done something silly. I'll check it again.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://snippets.wikidot.com/forum/t-536479#post-1557694</guid>
				<title>Re: Re-direct when cancel button is pressed on a dataform</title>
				<link>http://snippets.wikidot.com/forum/t-536479/404-page-does-not-exist-redirect#post-1557694</link>
				<description></description>
				<pubDate>Thu, 06 Sep 2012 13:39:57 +0000</pubDate>
				<wikidot:authorName>tsangk</wikidot:authorName>				<wikidot:authorUserId>47197</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi Rob,</p> <p>I don't know if I understand fully what you mean here. I've created a data form on my sandbox (<a href="http://ktsangsb.wikidot.com/npr:test/edit/true">http://ktsangsb.wikidot.com/npr:test/edit/true</a>) and I included this snippet on the sidebar&#8230; and when I click cancel, it'll redirect me to the 404 page.</p> <p>So, are you after a way to redirect the user back to the referrer URL rather than a static 404 page?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://snippets.wikidot.com/forum/t-536479#post-1557690</guid>
				<title>Re-direct when cancel button is pressed on a dataform</title>
				<link>http://snippets.wikidot.com/forum/t-536479/404-page-does-not-exist-redirect#post-1557690</link>
				<description></description>
				<pubDate>Thu, 06 Sep 2012 13:28:23 +0000</pubDate>
				<wikidot:authorName>RobElliott</wikidot:authorName>				<wikidot:authorUserId>111301</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Kenneth et al, I was wondering if there is a way that this excellent snippet can be extended (or a new one created) to cover the situation when then user presses the Cancel button while editing a new dataform.</p> <p>At the moment it just takes them to the standard &quot;This page does not &quot;yet&quot; exist&quot; screen, but it would be better if the redirect can be used to take them back to the page they came from. Will we have to wait for wish:247 to be implemented or is there something clever you can do here?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://snippets.wikidot.com/forum/t-536479#post-1526743</guid>
				<title>(no title)</title>
				<link>http://snippets.wikidot.com/forum/t-536479/404-page-does-not-exist-redirect#post-1526743</link>
				<description></description>
				<pubDate>Fri, 03 Aug 2012 06:46:28 +0000</pubDate>
				<wikidot:authorName>Arotaritei Vlad</wikidot:authorName>				<wikidot:authorUserId>421284</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Although the browser loads two pages instead of one this snippet works fast. Since I do not JavaScript my Wikidot-knowledge is a bit limited. But thanks a lot for this snippet because I waited so much Wikidot staff to implement it.</p> <p>Best regards,<br /> Vlad</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://snippets.wikidot.com/forum/t-536479#post-1522229</guid>
				<title>Re: Great Solution!</title>
				<link>http://snippets.wikidot.com/forum/t-536479/404-page-does-not-exist-redirect#post-1522229</link>
				<description></description>
				<pubDate>Mon, 30 Jul 2012 00:59:31 +0000</pubDate>
				<wikidot:authorName>tsangk</wikidot:authorName>				<wikidot:authorUserId>47197</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Ah, well:</p> <p>The original code (first version) resembled your <a href="http://snippets.wikidot.com/code:iframe-redirect">iframe redirect</a> snippet. Since I had basically copied the code and added lines before and after in the Javascript, I decided to change the comment line &#8212; rather than removing it.</p> <p>I then removed all of the <tt>&lt;html&gt;</tt>, <tt>&lt;body&gt;</tt> and <tt>&lt;head&gt;</tt> to help &quot;speed up&quot; the load time.</p> <p>So&#8230; yeah&#8230;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://snippets.wikidot.com/forum/t-536479#post-1522069</guid>
				<title>Great Solution!</title>
				<link>http://snippets.wikidot.com/forum/t-536479/404-page-does-not-exist-redirect#post-1522069</link>
				<description></description>
				<pubDate>Sun, 29 Jul 2012 22:03:18 +0000</pubDate>
				<wikidot:authorName>GoVegan</wikidot:authorName>				<wikidot:authorUserId>35113</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>This is a great solution to our long-time needed feature! Well done!</p> <p>However&#8230;</p> <blockquote> <p>&lt;!&#8212; Based on code by James Kanjo. Edited by Kenneth Tsang. &#8212;&gt;</p> </blockquote> <p>No, the JavaScript code doesn't seem to resemble anything I've coded&#8230; I don't think you need to credit me for your hard work here!</p> <p>Or was this referring to the <tt>/nav:side</tt> &amp; <tt>/nav:top</tt> technique I created for the Per Category CSS module?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://snippets.wikidot.com/forum/t-536479#post-1520614</guid>
				<title>(no title)</title>
				<link>http://snippets.wikidot.com/forum/t-536479/404-page-does-not-exist-redirect#post-1520614</link>
				<description></description>
				<pubDate>Sat, 28 Jul 2012 03:30:43 +0000</pubDate>
				<wikidot:authorName>tsangk</wikidot:authorName>				<wikidot:authorUserId>47197</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <blockquote> <p>In order to have a separate 404 page per category, official support for this feature would still be nice to have.</p> </blockquote> <p>Yes, I would love to see official support too.</p> <blockquote> <p>But you've come up with a good alternative in the meantime, and it's extremely simple to implement!</p> </blockquote> <p>Thanks :)</p> <p>I've also added a new include, <tt>[[include :snippets:404-link…</tt> for creating a link in the 404 page which will allow users to create the page easier. It's 100% SUO capable. I've implemented it in the community site.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://snippets.wikidot.com/forum/t-536479#post-1520516</guid>
				<title>(no title)</title>
				<link>http://snippets.wikidot.com/forum/t-536479/404-page-does-not-exist-redirect#post-1520516</link>
				<description></description>
				<pubDate>Sat, 28 Jul 2012 01:59:02 +0000</pubDate>
				<wikidot:authorName>leiger</wikidot:authorName>				<wikidot:authorUserId>32953</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Just had a chance to implement it on one of my own sites &#8212; it works really well. Nice job tsangk (and James Kanjo too, who created the original code that you worked from).</p> <p>In order to have a separate 404 page per category, official support for <a href="http://feedback.wikidot.com/wish:247" target="_blank">this feature</a> would still be nice to have. But you've come up with a good alternative in the meantime, and it's extremely simple to implement!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://snippets.wikidot.com/forum/t-536479#post-1518827</guid>
				<title>(no title)</title>
				<link>http://snippets.wikidot.com/forum/t-536479/404-page-does-not-exist-redirect#post-1518827</link>
				<description></description>
				<pubDate>Thu, 26 Jul 2012 13:53:13 +0000</pubDate>
				<wikidot:authorName>Helmut_pdorf</wikidot:authorName>				<wikidot:authorUserId>17609</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>And Rob has made a wonderfull community 404 page:<br /> ( Sorry, Rob , I cannot stop to post this here..)<br /> <a href="http://community.wikidot.com/404" target="_blank">http://community.wikidot.com/404</a> (**Hmmm&#8230;..we couldn't find that one **)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://snippets.wikidot.com/forum/t-536479#post-1518805</guid>
				<title>(no title)</title>
				<link>http://snippets.wikidot.com/forum/t-536479/404-page-does-not-exist-redirect#post-1518805</link>
				<description></description>
				<pubDate>Thu, 26 Jul 2012 13:13:57 +0000</pubDate>
				<wikidot:authorName>tsangk</wikidot:authorName>				<wikidot:authorUserId>47197</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <blockquote> <p>That's good, well done Kenneth. I've added it to the Community site.</p> </blockquote> <p>Thanks Rob :)</p> <blockquote> <p>One thing I noticed is there is a lag of a couple of seconds while the &quot;normal&quot; page not found displays</p> </blockquote> <p>Yes, I noticed the lag in redirection too &#8212; but I think it's a characteristic of the Javascript-based redirection method. A normal redirect would simple send headers for redirection whereas the javascript method requires the loading of the parent page and the redirection child frame before the actual redirection takes place.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://snippets.wikidot.com/forum/t-536479#post-1518798</guid>
				<title>(no title)</title>
				<link>http://snippets.wikidot.com/forum/t-536479/404-page-does-not-exist-redirect#post-1518798</link>
				<description></description>
				<pubDate>Thu, 26 Jul 2012 13:00:14 +0000</pubDate>
				<wikidot:authorName>RobElliott</wikidot:authorName>				<wikidot:authorUserId>111301</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>That's good, well done Kenneth. I've added it to the Community site.</p> <p>One thing I noticed is there is a lag of a couple of seconds while the &quot;normal&quot; page not found displays before the re-direct happens. Is this due to the html blog in the framework and, if so, the the framework really necessary?</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>