-1

i'm new to LAMP and MediaWiki.

To go to my mediawiki i have to type in domain-name.com/wiki.

When i type in domain-name.com, i go to the apache's index page.

How to make root-url direct me to the wiki page?

leo
  • 8,106
  • 7
  • 48
  • 80
nuT707
  • 1,543
  • 4
  • 17
  • 27

2 Answers2

2

From http://m.mediawiki.org/wiki/Manual:Short_URL/Apache

# Redirect / to Main Page
RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]

This should go after your short URL rules. If you have no short URL setup, simply

RewriteRule ^$ %{DOCUMENT_ROOT}/w/index.php [L]

should do the trick (see .htaccess rewrite to redirect root URL to subdirectory)

Community
  • 1
  • 1
leo
  • 8,106
  • 7
  • 48
  • 80
0

I just added one line in my /etc/apache2/httpd.conf:

RedirectMatch ^/$ http://domain-name.com/wiki/

And it works)

nuT707
  • 1,543
  • 4
  • 17
  • 27