Difference between revisions of "User:WikiMaster/The Dingo Ate My Wiki"
WikiMaster (talk | contribs) m (Local Settings .php & MW 1.18.0rc1) |
WikiMaster (talk | contribs) m (→.htaccess mod_rewrite woes: Minor fixes.) |
||
Line 31: | Line 31: | ||
; Articles Affected (Among Others) | ; Articles Affected (Among Others) | ||
− | * [[portlandwiki:|User:WikiMaster/Tables & Columns]] | + | * [[portlandwiki:User:WikiMaster/Tables & Columns|User:WikiMaster/Tables & Columns]] |
− | * [[portlandwiki:|A. E. Doyle]] | + | * [[portlandwiki:A. E. Doyle|A. E. Doyle]] |
− | * [[portlandwiki:|Occupy Portland/Press Releases]] | + | * [[portlandwiki:Occupy Portland/Press Releases|Occupy Portland/Press Releases]] |
− | * [[portlandwiki:|occupyportland.com]] | + | * [[portlandwiki:occupyportland.com|occupyportland.com]] |
− | * [[portlandwiki:|Terry D. Schrunk]] | + | * [[portlandwiki:Terry D. Schrunk|Terry D. Schrunk]] |
; Sources Consulted | ; Sources Consulted |
Revision as of 09:26, 13 March 2012
LocalSettings.php & MW 1.18.0rc1
## The protocol and server name to use in fully-qualified URLs // 25 November 2011 -- Dave Myers commenting out. Both variants shown below appear to force URL path to wiki directory (http://organizedpower.org/smw) to automatically redirect back to domain root. // $wgServer = "http://organizedpower.org"; // $wgServer = "http://organizedpower.org/smw";
export / import templates
Copied two versions of the Template:USSFwikiNews using instructions found here:
- Source Template: http://wiki.ussf2010.org/wiki/Template:USSFwikiNews
- Replica: http://telecafe.org/smw/Template:USSFwikiNews
The MediaWiki instructions recommended UNCHECKING the "include only the current revision" box before exporting the template. Doing so, however, produces a much larger file. An attempt to import that larger file resulted in a browser and/or server timeout error.
To get a smaller file, make sure the "include only the current revision" remains CHECKED. The imported file from the example shown above imported well, although the image had to be uploaded separately.
.htaccess mod_rewrite woes
- Summary
- Affected Wiki: PortlandWiki
Started noticing issues with page titles containing "/" characters. URLs containing those characters began resolving to a 404 errors. Later, similar errors began affecting articles with titles containing "." and "&" characters.
- Articles Affected (Among Others)
- User:WikiMaster/Tables & Columns
- A. E. Doyle
- Occupy Portland/Press Releases
- occupyportland.com
- Terry D. Schrunk
- Sources Consulted
- http://www.mediawiki.org/wiki/Manual_talk:Short_URL/Archive_1#Articles_with_ampersands_in_their_names
- http://www.mediawiki.org/wiki/Manual:Short_URL/Ampersand_solution
- http://www.mediawiki.org/wiki/Manual:Short_URL/wiki/Page_title_--_DreamHost_Shared_Hosting#MediaWiki_installed_in_home-directory_.28same_as_root.29_.22www.yourdomain.com.2F.22
- Fix Applied
- Made adjustments to the .htaccess file:
RewriteEngine On RewriteCond %{REQUEST_URI} ^/.*&.* RewriteRule ^/?(.*)&(.*)$ /index.php?title=$1\%26$2 [L,NE] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.+)$ index.php?title=$1 [L,QSA]