: How to eliminate /wiki/ directory in rewrite rule on a site dedicated for a wiki I have set up a subdomain of my site (for the purposes of this question I'll call it wiki.example.com), installed
I have set up a subdomain of my site (for the purposes of this question I'll call it wiki.example.com), installed a wiki there, and set up URL rewrite according to the article on MediaWiki's website (http://www.mediawiki.org/wiki/Manual:Short_URL/Apache).
But because my subdomain is purely dedicated to the wiki I was hoping that I could have my URLs in the format wiki.example.com/ArticleName rather than wiki.example.com/wiki/ArticleName.
I tried this by modifiying the rewrite rule in a way I thought would be correct:
RewriteRule ^(/.*)$ %{DOCUMENT_ROOT}/index.php [L]
Disclaimer: it may not have been exactly like that as the syntax I had written is no longer available for me to retype into this question.
This partially worked, as I could reach the page at wiki.example.com/Main_Page but none of the images or CSS had loaded.
I suspect the URL rewrite rule was trying to point everything at index.php but I'm wondering if there's any way to get a URL in the format wiki.mysite.com/ArticleName?
More posts by @Vandalay111
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.