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
Rewrite engine
(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!
==Usage== {{see also|Semantic URL|URL shortening}} Web sites with [[dynamic web page|dynamic content]] can use URLs that generate pages from the server using [[query string]] parameters. These are often rewritten to resemble URLs for [[static web page|static page]]s on a site with a [[folder (computing)|subdirectory hierarchy]]. For example, the URL to a [[wiki]] page with title ''Rewrite_engine'' might be: <nowiki>http://example.com/w/index.php?title=Rewrite_engine</nowiki> but can be rewritten as: <nowiki>http://example.com/wiki/Rewrite_engine</nowiki> A [[blog]] might have a URL that encodes the dates of each entry: <nowiki>http://www.example.com/Blog/Posts.php?Year=2006&Month=12&Day=19</nowiki> It can be altered like this: <nowiki>http://www.example.com/Blog/2006/12/19/</nowiki> which also allows the user to change the URL to see all postings available in December, simply by removing the text encoding the day '19', as though navigating "up" a directory: <nowiki>http://www.example.com/Blog/2006/12/</nowiki> A site can pass specialized terms from the URL to its [[search engine]] as a search term. This would allow users to search directly from their browser. For example, the URL as entered into the browser's [[location bar]]: <nowiki>http://example.com/search term</nowiki> will be [[urlencode|URL-encode]]d by the browser before it makes the [[HTTP request]]. The server could rewrite this to: <nowiki>http://example.com/search.php?q=search%20term</nowiki>
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)