Https site not open localy - php

I uplode my site in host with ssl certificate and the links alredy becom https but after that I when i run my project in localhost it is directed me to online so, is there any configration in wamp server need to change ? How Can I fix it?

You have to remove code from .htaccess or .webconfig file of localhost project folder.

Related

Htaccess giving 404 error on Aws Linux 2 AMI

I have set up an elastic beanstalk and deployed my application to it, the application has a .htaccess file in it. .htaccess works perfectly on my localhost but when checking it on the live server it gives back a 404 error.
For Example
I have a login file named login_1.php, on my .htaccess I've set the file to be called login.
When clicking the login link on my localhost it sends me to the login_1.php file with the URL name of login, but when clicking on the login link on the live server it takes me to a 404 error.
I've followed all instructions on the internet regarding this issue but nothing seems to solve the problem. I've changed AllowOverride None to AllowOverride All on my httpd.conf file. I do not have apache on my ec2 Linux 2 AMI instance so I can't restart apache.
Any help would be much appreciated to fix this.
Thanks,
Arnav
Figured out the answer, went into my elastic beanstalk application and changed the application type to APACHE instead of NGINX. This start httpd sever and allowed me to activate the .htaccess file in my application.

Not able to acess php file in xampp ubuntu through Local host

Hello I have installed xampp/lampp on windows and am trying to open website in local host using:
http://localhost/htdocs/my-first-project/index.php
I have also tried
http://localhost/my-first-project/index.php
But it always shows following error:
Not Found The requested URL was not found on this server.
Apache/2.4.41 (Ubuntu) Server at localhost Port 80
But my local host page and phpmyAdmin is running without any problem
I also want to mention that I have set my Apache server port to 8080.
Thank you in advance
Have you already tried to place your index.php in the DocumentRoot Folder and access it from there?

Apache port 80 works but port 443 wont work with laravel project

I install SSL certificate:
Now when I have simple index.html or some other file in public directory SSL works fine but when I point to index.php which is index of laravel 5.1 project I just get:
Not Found
The requested URL /auth/login was not found on this server.
What is a problem? Why other SSL for other files works good just LARAVEL files (route) is a problem here...
WHta to do?
Seems like Apache configuration is wrong, make sure SSL is installed correctly with Apache

Using SSL certificate issue?

My hosting account has two folders for me to upload/installing websites onto:
/httpdocs/
/httpsdocs/
I have installed phpMyDirectory into /httpdocs/ and all works great. I have since purchased a SSL certificate and my webhost has installed this for me on my domain. My issue arises when I insert the base url for SSL in the default.php (settings file) as such:
$BASE_URL_SSL = 'https://www.mydomain.com';
I realise the problem is that I don't have my website installed in the HTTPS secure directory on my hosting account. Do I copy the content from /httpdocs/ to /httpsdocs/ or should I make a fresh installation only in the /httpsdocs/ directory?
The standard solutions are to either
symlink the necessary directories/files into the https directory, or
use .htaccess rules to rewrite from the https directory to the http directory.
Which to use depends on what possibilities your host gives you.

HTTPS and 500 Internal Server Error

I Just installed SSL on my server, I can access to all my folder with and without https.
Now, I put a php file on a folder. I can access to it without https, but when I want to open a secure connexion with httpS I have : 500 Internal Server Error. Only if the content of this folder is a php project, if not (e.g.: html project) it will open very well with https
I have any .htaccess on this folder.
How can I fix that?
Thanks in advance.
This sounds like the Virtual Host directive within the httpd-ssl.conf isn't properly configured to handle PHP files. My guess would be a user/permission issue or the lack of a handler directive that would tell Apache how to handle .php files.
Regards
You have to configure you htaccess properly, by that i mean to get it on.

Categories