URL redirects to /xampp/ not wiki

Problems with the Windows version of XAMPP, questions, comments, and anything related.

URL redirects to /xampp/ not wiki

Postby jkofoot » 17. September 2014 15:29

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>
jkofoot
 
Posts: 2
Joined: 17. September 2014 15:19
Operating System: Server 2008 R2

Re: URL redirects to /xampp/ not wiki

Postby jkofoot » 17. September 2014 15:39

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
jkofoot
 
Posts: 2
Joined: 17. September 2014 15:19
Operating System: Server 2008 R2

Re: URL redirects to /xampp/ not wiki

Postby Altrea » 18. September 2014 06:07

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11933
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 214 guests