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.
Related
I've a server with 3 Wordpress. With one of them, I've changed (add an "s" after http) two URL in General Settings Wordpress Adress and Site Adress.
Since I've do that, I'had ERR_TO_MANY_REDIRECT error. So I've add theses lines in my wp-config file :
define('WP_HOME','http://www.mywebsite.com/wordpress/');
define('WP_SITEURL','http://www.mywebsite.com/wordpress/');
And now I've an error Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure script '<URL>'. This request has been blocked; the content must be served over HTTPS.
A lot of files (like CSS) is not recognised and I'can't access to my wp-admin.
I don't know what to do and I don't understand why the problem is on my 3 wordpress if I had change that in one of them...
Can you help me please ?
I've found a solution :
Comment my rules for HTTPS in my .htaccess.
Access to my wp-admin ( I can access now )
Install the plugin SSL Insecure Content Fixer
Now I can access to my different Wordpress in HTTPS
When you host a site on secure domain i.e. (https://) you cannot use insecure URL's in your files (http://) so the options with you are you use SSL on other servers as well.
You can try Certbot for installing SSL certificate on your other servers.
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.
I have an eCommerce WordPress site using woo commerce. Now my hosting company "Heart Internet" provide free SSL certs however the map a subdomain to my domain to achieve this.
Real domain http://mywebsite.com/
SSL Version https://web110.secure-secure.co.uk/mywebsite.com/
So this means if I want to use SSL for my checkout page I need to link to this url. https://web110.secure-secure.co.uk/mywebsite.com/checkout
However doing so provides me with the error:
Forbidden
You don't have permission to access /index.php on this server.
Apache/2.4.23 (Unix) Server at web115.secure-secure.co.uk Port 80
So I would imagine this is something to do with .htaccess but I am not sure.
If I go to this url: https://web110.secure-secure.co.uk/mywebsite.com
It actually does display the home page, however minus any images or css styles and my console is full of failed to load resources error messages.
AFter contacting my hosting company they have said its due to how the site itself is configured. But this is just a simple wordpress website, nothing fancy going on.
Does any one know what I can do?
Image of heart internet ssl
To clarify my question is not about css/images not showing up on homepage, its about the fact i cannot reach any other page on my website without getting the error - You don't have permission to access /index.php on this server.
I don't use the same certificat, but with mine
(Free let's encrypt), i have the same url for whole website. I use woocommerce and checked the appopriate option in the woocommerce setting (use ssl for check out).
Does your provider told you to put your files in this folder ?
If so, all your install might be inside and a redirect done to the main domaine name. You maybe need to change files and folder permissions to use it, with your mostly like ftp browser.
I try to deploy my laravel project on host server. So I upload all files contains in my Laravel Project folder on my host server. But when I check with the url, I can't use my project like when I'm on my localhost. I have just the homepage and when I tried to access others pages the server return 404 not found.
I really have no idea what I should do ?
Any suggests, thanks !
There are several things to check while you work to resolve this issue:
Compatible Environments
If your host uses web server software (Apache, Nginx, etc) other than the one that you use in your development environment, check the Laravel documentation for information about configuration Laravel to run with your hosts's web server.
Routing
Ensure that you deployed your .htaccess file. This file lives in the public directory. It is responsible for mapping all of your URLs to the main Laravel router.
Deployed Files
Verify that all of your other files on the host server match the files in your development environment. It is not uncommon to miss files or entire directories when deploying a new project.
Logging
If your problem still is not resolved, get access to the host's log files and examine the errors that are logged when you try to access your site. You can often find a clue in the log files that will lead you to the specific problem.
Sounds like you've deployed it onto a non-apache webserver so .htaccess rewrites are not being used.
If its nginx then you need to add the following rewrites to your vhost configuration.
location / {
try_files $uri $uri/ /index.php?$query_string;
}
http://laravel.com/docs/4.2/installation#pretty-urls
I just got my ssl certificate to work for the first time.
For some reason when I connect to my website using https my browser tries to download the php file.
I have the following line in my httpd.conf. Isn't this the line which makes sure php files are run using php?
AddType application/x-httpd-php .php
What else do I need to change so that I can get the php files to work over the https connection.
Thanks!
UPDATE:
httpd.conf:
Removed...
The problem was somehow with Plesk. This dedicated server came with plesk pre-installed. I never used it so far but it turns out it was overriding my ssl.conf somehow.
So the solution was creating my domain under plesk. Moving all files to the new directory created by plesk. Embedding my ssl certificate to plesk and associating the certificate with the domain.
Now it is working like a charm. I cannot say I'm happy that I have to start learning Plesk but at least it is working.