Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 149675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:10:06+00:00 2026-05-11T09:10:06+00:00

I like to make a .htaccess file to redirect any errors I get from

  • 0

I like to make a .htaccess file to redirect any errors I get from a web site.

I have deleted all pages from the old site. But I have no idea what pages people have bookmaked.

The new webpage and website structure is totally different … so no page is the same as the old one, not event the index document that changed from index.html to index.php.

So here is the .htaccess file I have uploaded to the server …

FEEL FREE TO COMMENT AND GIVE ME YOUR POINT OF VIEW, WHAT YOU WILL DO?

Maybe it is an overkill … but it works! Here is the file:

#404 - Not Found The requested URL was not found on this server ErrorDocument 404 http://acecrodeo.com/new/01-acec.php?lang=fra  #400 - Bad Request Your browser sent a request that this server could not understand ErrorDocument 400 http://acecrodeo.com/new/01-acec.php?lang=fra  #401 - Authorization Required This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required. ErrorDocument 401 http://acecrodeo.com/new/01-acec.php?lang=fra  #403 - Forbidden You don't have permission to access on this server ErrorDocument 403 http://acecrodeo.com/new/01-acec.php?lang=fra  #405 - Method Not Allowed The requested method GET is not allowed for the URL ErrorDocument 405 http://acecrodeo.com/new/01-acec.php?lang=fra  #406 Not Acceptable ErrorDocument 406 http://acecrodeo.com/new/01-acec.php?lang=fra  #409 Conflict ErrorDocument 409 http://acecrodeo.com/new/01-acec.php?lang=fra  ##413 - Request Entity Too Large The requested resource does not allow request data with GET requests, or the amount of data provided in the request exceeds the capacity limit ErrorDocument 413 http://acecrodeo.com/new/01-acec.php?lang=fra  #414 - Request-URI Too Large The requested URL's length exceeds the capacity limit for this server ErrorDocument 414 http://acecrodeo.com/new/01-acec.php?lang=fra  ##500 - Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request ErrorDocument 500 http://acecrodeo.com/new/01-acec.php?lang=fra  #501 - Method Not Implemented GET to URL not supported ErrorDocument 501 http://acecrodeo.com/new/01-acec.php?lang=fra  # ------------ i am not sure the usefullness of these.. put it anyway !  #301 - Moved Permanently The document has moved URL here ErrorDocument 301 http://acecrodeo.com/new/01-acec.php?lang=fra  #302 - Found The document has moved URL here ErrorDocument 302 http://acecrodeo.com/new/01-acec.php?lang=fra  #303 - See Other The answer to your request is located URL here ErrorDocument 302 http://acecrodeo.com/new/01-acec.php?lang=fra  #304 - Not Modified A cached copy will be used ErrorDocument 304 http://acecrodeo.com/new/01-acec.php?lang=fra  #408 - Request Time-out Server timeout waiting for the HTTP request from the client ErrorDocument 408 http://acecrodeo.com/new/01-acec.php?lang=fra  #410 - Gone The requested resource is no longer available on this server and there is no forwarding address. Please remove all references to this resource ErrorDocument 410 http://acecrodeo.com/new/01-acec.php?lang=fra  #411 - Length Required A request of the requested method GET requires a valid Content-length ErrorDocument 411 http://acecrodeo.com/new/01-acec.php?lang=fra 

what about php request

if i request aaa.php (old file) and the new file request aaa.php?lang=eng

it come up with an error… what should i do, redirect ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:10:06+00:00Added an answer on May 11, 2026 at 9:10 am

    You should know that absolute URLs change the original error status code to a redirect status code:

    Note that when you specify an ErrorDocument that points to a remote URL (ie. anything with a method such as http in front of it), Apache will send a redirect to the client to tell it where to find the document, even if the document ends up being on the same server. This has several implications, the most important being that the client will not receive the original error status code, but instead will receive a redirect status code. This in turn can confuse web robots and other clients which try to determine if a URL is valid using the status code. — ErrorDocument Directive

    So instead of sending 404 Not Found as answer for a not found resource, Apache will probably send a 302 Temporary Redirect.


    What I would do is to handle the error locally with a page that says whatever you want to say to people looking for a document. Maybe something like this:

    This website has moved to example.com. But due to a stupid change in the managment system, the old URIs can not be mapped to the new one. We apologize for this and hope you can find the page you were looking for.

    That combined with search field should give the user some answer and help for the situation they are facing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an htaccess file that uses mod_rewrite to redirect /controller to /index.php?controller=%controller% Like
I'd like to make a htaccess file, which can make a good structure for
I'd like to make some custom MenuHeaders in WPF so I can have (for
I'd like to make a click event fire on an <input type=file> tag programmatically.
I would like to make the update of the web application as automated as
Okay I have this RewriteRule which is supposed to redirect any request for the
This is a multi-site problem. I have a lot of sites with .htaccess files
Recently, I was doing .htaccess url rewrite, make all my php url into html,
Recently, I was doing .htaccess url rewrite, make all my php url into html,
Simple task like make AJAX request , pass one parameter and return result, can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.