Mobile app version of vmapp.org
Login or Join
Vandalay111

: 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

@Vandalay111

Posted in: #Apache #Mediawiki #ModRewrite #Wiki

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Vandalay111

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme