Page 1 of 1

URL redirects to /xampp/ not wiki

PostPosted: 17. September 2014 15:29
by jkofoot
So I'm new to Xampp and Apache in general, but I have an issue that I haven't been able to find the answer for, though I feel it is probably fairly easy. Essentially we are running xampp to run our own company wiki and based on this we have our wiki that comes up as xx.xx.xx.xx/mediawiki.index.php, but we want to be able to use the following url to connect to it wiki.prominenceadvisors.com. The problem is that wiki.prominenceadvisors.com redirects to wiki.prominenceadvisors.com/xampp/. I see in the index.php file where this lies, but I want to know how in apache do I complete this redirect correctly.

I have attempted to put the following in httpd-vhosts, but it doesn't work. Essentailly it will get me to the login page, though it doesn't look correct, but when I click login I then get a 404 error. Any help would be greatly appreciated.

#NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot "C:\xampp\htdocs\mediawiki/"
ServerName wiki.prominenceadvisors.com
</VirtualHost>

Re: URL redirects to /xampp/ not wiki

PostPosted: 17. September 2014 15:39
by jkofoot
so one quick update. If I change my DocumentRoot to be C:\xampp\htdocs\mediawiki\index.php I can then login, but I have lost all formatting on all pages. Here is what the page looks like:

Image

Re: URL redirects to /xampp/ not wiki

PostPosted: 18. September 2014 06:07
by Altrea
Creating a vhost is The correct way, don't reconfigure The global documentroot.

Everything Else is a mediawiki issue. You need to configure mediawiki to The new url.