Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Web server
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== URL redirection ==== {{Main|URL redirection}} A web server program ''may'' have the capability of doing URL redirections to new URLs (new locations) which consists in replying to a client request message with a response message containing a new URL suited to access a valid or an existing web resource (client should redo the request with the new URL).<ref name="rfc7231-6.4">{{cite IETF |rfc=7231 |sectionname=Response Status Codes: Redirection 3xx |section=6.4|title=RFC 7231, HTTP/1.1: Semantics and Content|pages=53β54}}</ref> URL redirection of location is used:<ref name="rfc7231-6.4" /> * to fix a directory name by adding a final slash '/';<ref name="ws-directory-listings" /> * to give a new URL for a no more existing URL path to a new path where that kind of web resource can be found. * to give a new URL to another domain when current domain has too much load. Example 1: a URL path points to a '''directory''' name but it does not have a final slash '/' so web server sends a redirect to client in order to instruct it to redo the request with the fixed path name.<ref name="ws-directory-listings" /> From:<br /> <code>/directory1/directory2</code><br /> To:<br /> <code>/directory1/directory2/</code> Example 2: a whole set of documents has been '''moved inside website''' in order to reorganize their file system paths. From:<br /> <code>/directory1/directory2/2021-10-08/</code><br /> To:<br /> <code>/directory1/directory2/2021/10/08/</code> Example 3: a whole set of documents has been '''moved to a new website''' and now it is mandatory to use secure HTTPS connections to access them. From:<br /> <code><nowiki>http://www.example.com/directory1/directory2/2021-10-08/</nowiki></code><br /> To:<br /> <code><nowiki>https://docs.example.com/directory1/2021-10-08/</nowiki></code> Above examples are only a few of the possible kind of redirections.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)