SIERRA Posted February 16, 2024 Share Posted February 16, 2024 Hi, We copied the production source and configured it the same as the development source on the localhost. However, the website is not working on the localhost, whereas it is working fine on the production source. Please find the error attached. FYI - we have SSL for the production environment. Can anyone kindly help resolve this issue? Thank you Link to comment Share on other sites More sharing options...
zoeck Posted February 16, 2024 Share Posted February 16, 2024 Quote "9A. To redirect HTTP requests to HTTPS, uncomment the lines below" Expand If you don't want https, you have to do the opposite ? Simply write a # before lines 194 and 195. Link to comment Share on other sites More sharing options...
SIERRA Posted February 16, 2024 Author Share Posted February 16, 2024 Hi, Thanks for your help. Even after commenting out lines 194 and 195, it still didn't work. Please find a screenshot of what issue I facing now in the incognito window. Could you please suggest any other options that I need to check? Thank you. Link to comment Share on other sites More sharing options...
zoeck Posted February 16, 2024 Share Posted February 16, 2024 Which local web server are you using? Link to comment Share on other sites More sharing options...
SIERRA Posted February 16, 2024 Author Share Posted February 16, 2024 We are using XAMPP local web server https://www.apachefriends.org/ Link to comment Share on other sites More sharing options...
zoeck Posted February 16, 2024 Share Posted February 16, 2024 Unfortunately, I'm not really familiar with XAMPP. But does the website work if you call it up via the following link: http://192.168.0.225/ticf/ or http://192.168.0.225:8080/ticf/ You would have to check which ports your XAMPP uses, apparently port 8085 is set for https. There should be another port for http (possibly 80 or 8080?) Link to comment Share on other sites More sharing options...
SIERRA Posted February 16, 2024 Author Share Posted February 16, 2024 Sorry @zoeck I tried with 8080 port , but it remains same. Link to comment Share on other sites More sharing options...
DV-JF Posted February 16, 2024 Share Posted February 16, 2024 I'd theese kind of problems with XAMPP, too. I've switched to WAMP Server - since then nearly everything went smoothly ? Perhaps you give it a try. Link to comment Share on other sites More sharing options...
zoeck Posted February 16, 2024 Share Posted February 16, 2024 Or Laragon ? https://laragon.org 1 Link to comment Share on other sites More sharing options...
zoeck Posted February 16, 2024 Share Posted February 16, 2024 Could it be that you have an absolute path to the css files with https in the source code? Link to comment Share on other sites More sharing options...
cwsoft Posted February 16, 2024 Share Posted February 16, 2024 I am developing on XAMPP too. Just added a little condition in my .htaccess, detecting if I am on localhost or live. When live, I redirect all request to non www with https. On localhost, I just use http. Only thing you need to remember, is that you can‘t set PW to force admin login to use https, as this would break login on localhost. Even wrote a small tutorial dealing with basic auth and https a while ago . Link to comment Share on other sites More sharing options...
SIERRA Posted February 17, 2024 Author Share Posted February 17, 2024 On 2/16/2024 at 3:29 PM, DV-JF said: I'd theese kind of problems with XAMPP, too. I've switched to WAMP Server - since then nearly everything went smoothly ? Perhaps you give it a try. Expand Hi @DV-JF I have installed and configured Wamp server for the development source. It downloads something when I try to open the URL. Thank you. On 2/16/2024 at 4:01 PM, zoeck said: Could it be that you have an absolute path to the css files with https in the source code? Expand No Link to comment Share on other sites More sharing options...
SIERRA Posted February 17, 2024 Author Share Posted February 17, 2024 I found the problem. When I load the website using localhost, it works fine. However, when I load it using the IP address, it does not work. I want to run the website using the IP address. Is there a solution for this? Link to comment Share on other sites More sharing options...
SIERRA Posted February 20, 2024 Author Share Posted February 20, 2024 Hi, Any updates please? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now