Manual talk:Short URL/wiki/Page title -- nginx rewrite--root access
Latest comment: 13 years ago by 109.224.132.158 in topic Works great!
Works great![edit]
Thanks, it is working quite well for me. I see what you mean about the printable version bit, but my apache configuration had the same limitation, so I think you've set it up just fine?--109.224.132.158 22:18, 8 May 2010 (UTC)
Problem with &[edit]
Does work well for everything except "&". http://domain.com/wiki/AT&T does not work. Nor does http://domain.com/wiki/AT%26T
infinite rewrites[edit]
running Ubuntu 10.04.1, nginx 0.7.65, PHP 5.3.3-0.dotdeb.1 with FPM, APC 3.1.6, mediawiki 1:1.15.1-1ubuntu2.1
browsing to http://myhost or http://myhost/ would produce URLs like:
http://myhost/index.php/Index.php/Index.php/Index.php...
The following rewrite rule worked for me:
location @mediawiki { rewrite ^/(?:index\.php5)([^?]*)(?:\?(.*))? /index.php5?title=$1&$2 last; }