RewriteEngine On RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/index.php [L] RewriteRule ^/*$ %{DOCUMENT_ROOT}/index.php [L]
On Wednesday, 27 February, 2013 01:13 PM, Simon Dorfman wrote:
Hello,
I just installed a new wiki. I'm trying to get Short URLs working using .htaccess.
Once things are working properly, my URLs should look like this: http://wiki.domain.tld/Main_Page
I tried following the example here: https://www.mediawiki.org/wiki/Manual:Short_URL/Apache
...but the example assumes two things that are not true for me:
- you installed mediawiki into a folder called "w"
- you want you URLs to look like this:
http://wiki.domain.tld/wiki/Main_Page
I installed mediawiki into my "root" domain folder, not in a sub-folder I don't want "wiki" to appear before /Main_Page.
Can someone please paste an example htaccess file that will work with these two requirements?
Thanks very much in advance! -Simon _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l