Difference between revisions of "Pretty URL"

From Freephile Wiki
Jump to navigation Jump to search
(Created page with "A "Pretty URL" is one that is short, memorable, and easy to type. It's not the same as a Persistent URL (PURL), but ideally, your persistent URLs are also Pretty. For most C...")
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Feature
+
A "Pretty URL" is one that is short, memorable, and easy to type.  It's not the same as a Persistent URL (PURL), but ideally, your persistent URLs are also Pretty.
|image=Pretty.jpg
 
|imgdesc=Pretty URLs
 
|title=
 
}}
 
{{#set:feature description = clean and SEO friendly URLs }}
 
{{#set:feature notes =  }}
 
{{#set:feature tests =  }}
 
{{#set:feature examples = https://freephile.org/wiki/Pretty_URL }}
 
A "Pretty URL" is one that is short, memorable, and easy to type.  It's not the same as a Persistent URL (PURL), but ideally, your persistent URLs are also Pretty.  Making a "Pretty URL" means transforming a system URL like <code>wiki/index.php?title=Main_Page</code> with <code>'''/wiki/Main_Page'''</code>.
 
 
 
For most Content Management Systems or other web application software the system creates a new URL for each new piece of content.  Making the URL 'pretty' can be a straightforward task that usually involves URL rewriting features of your web server in addition to some configuration of the application.
 
  
Not only are Pretty URLs easy on the eyes and brain; but they are also better for SEO. (The unadorned keyword is also the article path) Pretty URLs are better for SPAM prevention. Many spam bots are programmed to look for default system URLs like <code>?action=edit</code>While the prettified application will still correctly process querystring parameters (the original way will still work), the visible links in the application (and thus in the search engine index) will ''not'' be those default links.  That is an improvement for fighting SPAM.  Basically, spammers won't recognize that your software is a wiki because you've disguised it.
+
For most Content Management Systems or other web application software the system creates a new URL for a piece of contentMaking the URL 'pretty' can be a straightforward task that usually involves URL rewriting features of your web server in addition to some configuration of the application.
  
 
== MediaWiki ==
 
== MediaWiki ==
 
For MediaWiki, first you should get '[https://www.mediawiki.org/wiki/Manual:Short_URL short URLs]' working.  Then, you can also add '[https://www.mediawiki.org/wiki/Manual:$wgActionPaths ActionPaths]' so that even the edit, delete, unwatch, etc. actions are "clean" too.  This results in a wiki that has article URLs present in a REST-like manner with the action "verb" at the end.  The default 'view' action is assumed and left off.
 
For MediaWiki, first you should get '[https://www.mediawiki.org/wiki/Manual:Short_URL short URLs]' working.  Then, you can also add '[https://www.mediawiki.org/wiki/Manual:$wgActionPaths ActionPaths]' so that even the edit, delete, unwatch, etc. actions are "clean" too.  This results in a wiki that has article URLs present in a REST-like manner with the action "verb" at the end.  The default 'view' action is assumed and left off.
 +
 +
{{Feature
 +
|explains= Pretty URL
 +
|description=clean and SEO friendly URLs
 +
|notes=
 +
|tests=
 +
|examples=https://freephile.org/wiki/Pretty_URL/watch
 +
}}

Revision as of 14:05, 20 April 2016

A "Pretty URL" is one that is short, memorable, and easy to type. It's not the same as a Persistent URL (PURL), but ideally, your persistent URLs are also Pretty.

For most Content Management Systems or other web application software the system creates a new URL for a piece of content. Making the URL 'pretty' can be a straightforward task that usually involves URL rewriting features of your web server in addition to some configuration of the application.

MediaWiki[edit | edit source]

For MediaWiki, first you should get 'short URLs' working. Then, you can also add 'ActionPaths' so that even the edit, delete, unwatch, etc. actions are "clean" too. This results in a wiki that has article URLs present in a REST-like manner with the action "verb" at the end. The default 'view' action is assumed and left off.


Pretty URL Dialog-information.svg
Summary
Description: clean and SEO friendly URLs
More
Example: https://freephile.org/wiki/Pretty_URL