![]() ![]() You decide to change the folder name from docs/ to documents/. =įor request elements required for redirecting all requests sent to a specified website and for setting redirection rules, see Configuring Static Website Hosting for a Bucket – Request ElementsĮxample 1: Modifying the object name prefix for redirectionĪssume that your bucket contains the following objects: The content in square brackets is optional. The syntax format of RoutingRules is as follows. The syntax format is as follows by setting redirection rules of specific requests: You can add a routing rule that redirects requests to other objects. For example, assume that you delete or rename an object in a bucket. You can redirect requests based on the specific object name or prefix in the request, or based on the response code. If the root domain is and you need to respond to requests from and, you can create two buckets named and Then you can retain the website content in only one bucket (such as ), and configure the other bucket to redirect all requests to the bucket. For 4 XX errors, you can provide your own customized error document, or provide other guides to your users in this document. ![]() If an error occurs, OBS returns an HTML error document. When a request is sent to the root domain or any subfolder, OBS returns this index document. When you configure a bucket for website hosting, you must specify an index document. This default page is called an index document, and in most cases it is named as index.html. In this case, the web server will provide a default page that contains the directory that stores the requested website content. When you enter a URL such as, you are not requesting a specific page. The configuration includes the following information: ![]() If you want to use a bucket to host static websites, add the website configuration to the bucket. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |