<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1043699" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1043699</link>
    <description></description>
    <language>en</language>
          <item>
    <title>That is exactly what I</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/404-error-redirect#comment-1240790</link>
    <description> &lt;p&gt;That is exactly what I do.&lt;/p&gt;
&lt;p&gt;But previously I had it so the htaccess directives went to the redirect_error.php file, which that file then used the PHP exit(header) code to send it to error.php.&lt;br /&gt;
I did this as it reset any bad filenames or directories in the users address bar as they had new headers to an exact file location.&lt;/p&gt;
&lt;p&gt;As Google analytics complained about the 403 being a 200 response and it wouldn&#039;t accept the analytic file until I rectified this issue, I had to change the htaccess directives to go straight to the error.php file and not the one that instigated the header redirect.&lt;/p&gt;
&lt;p&gt;As such, you can type a non-existent directory in the address bar, and although the error page is loaded successfully from the htaccess directive, it doesn&#039;t change the URL. So &lt;code&gt;domain.com/non-existent_dir/&lt;/code&gt; remains as it is. And for directories password protected through plesk, the pop up login prompt keeps popping up for as the address bar remains the same and not redirected.&lt;/p&gt;
&lt;p&gt;I.E. URL is still the password protected dir, and is now refreshed due to the error.php file being loaded and so the login pops up again due to reload.&lt;/p&gt;
 </description>
     <pubDate>Fri, 24 Apr 2009 03:24:54 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1240790 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>is there a reason why you</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/404-error-redirect#comment-1240788</link>
    <description> &lt;p&gt;is there a reason why you cannot just use the .htaccess directives:&lt;/p&gt;
&lt;p&gt;ErrorDocument 404 /error.php&lt;br /&gt;
ErrorDocument 403 /error.php&lt;/p&gt;
&lt;p&gt;In the error.php, are you feeding out a header to indicate the page is actually a 404?&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Fri, 24 Apr 2009 02:46:11 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1240788 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
