Home > Error Code > Apache Error 302

Apache Error 302

Contents

We now have two custom error pages that we can serve when client requests result in different errors.

We will use the default server block file called 000-default.conf, but you should adjust your own server blocks if you're using a non-default file:

We now have two custom error pages that we can serve when client requests result in different errors.

Therefore, HTTP/1.1 added status codes 303 and 307 to distinguish between the two behaviours.[22] However, some Web applications and frameworks use the 302 status code as if it were the 303.[23] Microsoft. But, it is still being crawled by Google/Yahoo and many other bots. Http Error Code 500 It may be used in .htaccess files if AllowOverride is set to FileInfo.

Upload the file to the server, and rename it .htaccess. WHAT SHOULS I DO? If you do this, you can tell the script to log the error for you, or the script can send you an email about the error. weblink Custom Error Responses and Redirects Apache's behavior to redirected URLs has been modified so that additional environment variables are available to a script/server-include.

Now you are done! To achieve this, when the error redirect is sent, additional environment variables will be set, which will be generated from the headers provided to the original request by prepending 'REDIRECT_' onto They tell the user whether the request can be completed, or if the server needs more information, or if the server cannot complete the request. April 2015.

This is done using mod_rewrite: RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] RewriteRule ^(.*)$ - [L,G]Save and close the file.ReferencesApache custom error pages.Mod_alias documentation.Mod_rewrite documentation. ErrorDocument 404 "Ooops, that page was not found. Privacy policy About Wikipedia Disclaimers Contact Wikipedia Developers Cookie statement Mobile view Skip Navigation +44 1273 906 908 [email protected] @AddedBytes

Home What We DoMagento Development E-commerce Development Web Development Retrieved April 1, 2009. ^ "10 Status Code Definitions".

The other variables will exist only if they existed prior to the error/problem. You can customize these directives a great deal.