Pretty URL: Difference between revisions

No edit summary
correct path of link
Line 1: Line 1:
{{Feature
|explains=Pretty URL
|description=clean and SEO friendly URLs
|notes=
|tests=
|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>.
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>.


Line 7: Line 14:
== 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
}}