subfolder website redirection

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

subfolder website redirection

Postby erayuyar » 23. August 2021 13:39

Dear All,
I've installed XAMPP server to Mic Server 2016 and created a Wordpress webpage on it. My Plan is to publish this webpage as intranet to my company.
Webpage content is under C:\xampp\htdocs\intranet.
the url should be like https://intranet.abccompany.com
I've also added to a dns record to redirect user to the url.
But due to Apache server defaults when I try to go to https://intranet.abccompany.com system redirects me to DASHBOARD. and I need to type http://intranet.abccompany.com/intranet to reach the website
I need to install SSL cert but it is not possible to do this to subfolder.
I need to redirect users without typing /intranet but how ?
erayuyar
 
Posts: 2
Joined: 23. August 2021 13:06
XAMPP version: 3.3.0
Operating System: microsoft server 2016

Re: subfolder website redirection

Postby Altrea » 23. August 2021 15:18

Hi,

You need to create a virtualhost matching on port 443 for ServerName intranet.abccompany.com
This new VirtualHost needs to have set the DocumentRoot to C:/xampp/htdocs/intranet.
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: 11942
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: subfolder website redirection

Postby erayuyar » 24. August 2021 09:19

need more help please
I'm not sure how to do it
erayuyar
 
Posts: 2
Joined: 23. August 2021 13:06
XAMPP version: 3.3.0
Operating System: microsoft server 2016

Re: subfolder website redirection

Postby Nobbie » 24. August 2021 09:53

Google for "VirtualHost Tutorial", you will get tons of examples, documentation and even videos.
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 183 guests