Quick Question
Seems like a dumb question but we finally finished our migration and went live. Now we are experiencing an odd issue. The wiki site is redirecting to /wiki . Meaning if I type in http://mywiki.com it automatically goes to http://mywiki.com/wiki. The issue doesn't stem from Apache. Where in mediawiki's configuration could this be?
Jon,
Could it be an issue related to your .htaccess file? In my experience, that is the most likely place to set up any domain redirects or URL rewriting. Are you trying NOT to redirect to the /wiki directory?
This is my first message to the list. So far the depth and breadth of information shared has been phenomenal. I plan on participating more as I learn my way around my mediawiki installation before we go live. Thanks!
Andrew
Jon Welters wrote:
Quick Question
Seems like a dumb question but we finally finished our migration and went live. Now we are experiencing an odd issue. The wiki site is redirecting to /wiki . Meaning if I type in http://mywiki.com it automatically goes to http://mywiki.com/wiki. The issue doesn't stem from Apache. Where in mediawiki's configuration could this be?
If page Foo is at http://mywiki.com/wiki/Foo, accessing http://mywiki.com/ will redirect you to http://mywiki.com/wiki/Main_Page
What were you expecting to find? The same page without changing your url? REally short urls, without the /wiki/?
This article may help you, although i'm not sure what you're trying to achieve :) http://www.mediawiki.org/wiki/Manual:Short_URL
Check the $wgScriptPath variable in your LocalSettings.php. See http://www.mediawiki.org/wiki/Manual:%24wgScriptPath
matsch
Am Mon, 7 Jul 2008 11:09:13 -0400 schrieb "Jon Welters" jwelters@gmail.com:
Quick Question
Seems like a dumb question but we finally finished our migration and went live. Now we are experiencing an odd issue. The wiki site is redirecting to /wiki . Meaning if I type in http://mywiki.com it automatically goes to http://mywiki.com/wiki. The issue doesn't stem from Apache. Where in mediawiki's configuration could this be?
All,
I should expand a bit. The part that is perplexing me is that the document root of the apache server is already /var/www/wiki ...... so why does the url show up as mywebsite.com/wiki/index.php ? In order to make it work I had to add an alias in apache ( Alias /wiki /var/www/wiki ). In reality that alias is what the virtual host already says. There's something in the mediawiki config telling it that it needs to add /wiki when it doesn't.
FYI originally for testing this was installed to /wiki on another vhosts documentroot. I'm sure there is just a variable somewhere that needs updating to reflect it's new home.
All,
Thanks for your help you can ignore my previous email I didn't see what Mathias posted that fixed it. Thanks for your help !
Wonder why my grep command didn't find that...........oh well.
mediawiki-l@lists.wikimedia.org