User talk:Elassint: Difference between revisions

(→‎URL organization: new section)
Line 69: Line 69:
== URL organization ==
== URL organization ==


I don't think it's a good idea how URLs are organized throughout this wiki, messing with pages and MediaWiki's files in the same directory. Maybe you want to move that files to a subdirectoy beginning with a lowercase letter, like I do on my wikis, and keep the base url solely for page names. This would also allow for non-directory-based rewrite rules in the server configuration and therefore save on subrequests and server load. --[[User:Bachsau|Bachsau]] 05:03, 28 June 2012 (PDT)
I don't think it's a good idea how URLs are organized throughout this wiki, messing with pages and MediaWiki's files in the same directory. Maybe you want to move that files to a subdirectoy beginning with a lowercase letter, like I do on my wikis, and keep the base url solely for page names. This would also allow for non-directory-based rewrite rules in the server configuration and therefore save on subrequests and server load. Look at these rules I'm using on my wiki's vHosts:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/(w/|BingSiteAuth\.xml$|favicon\.ico$|google.{16}\.html$|robots\.txt$)
RewriteRule ^.*$ /w/index.php [L]
--[[User:Bachsau|Bachsau]] 05:03, 28 June 2012 (PDT)
59

edits