I have just developed a credit-card processing form using Drupal, the form communicates with the Payway API (a payment processing API provided by my bank).
I have purchased an SSL certificate with my host, and I know have an HTTPS server on my hosting account. What do I do to make all my forms run through HTTPS? Sorry I am new to SSL and am completely clueless in this matter.
I've tried copying my drupal site into my httpsdocs folder but it runs extremely slow when I access it through https://
Any help or direct would be much appreciated.
One of the easiest ways to force HTTPS on a web server is through a .htaccess file on the root of your web server. Then you can apply HTTPS only to the folders you need.
If you are using Drupal, there is likely already a .htaccess file on the root of your website that you can edit. Here's a simple guide on what needs to be added to the file:
http://www.besthostratings.com/articles/force-ssl-htaccess.html
Related
i have a website coded in php running on a domain. I want to install wordpress only on a sub-domain for blogging purpose. Can it be done? if yes, please guide me. I have tried searching for it but found nothing. please help
the general answer is yes. but you must answer this question:
what is your control panel (ex: the DirectAdmin, the CPanel, or etc)?
if you have a control panel so, you must search about this issue on the control panel forum.
if NOT, you must follow these steps (it's a general solution. therefore, for getting a specific answer give me more details. such as, what is your web server? what is your DNS server?)
1- create a directory on the public directory of the server and install Wordpress on it (ex: path-to-the-public-directory/subdomain-directory)
2- create an A record on the DNS server to resolve subdomain.domain.com
3- create an appropriate config for your web server to handle requests of your subdomain
Yes this can be achieved.
Create your sub-domain by logging into your web host account.
Navigate to your sub-domain root folder using an FTP client such as Filezilla
Follow the instructions here: https://wordpress.org/support/article/how-to-install-wordpress/#basic-instructions
I developed this website using Laravel 5.5 for my research group and uploaded it to my university web host. The website's address is in the format of xxxx.cse.yyyy.edu .
When I browse some pages of this website it gets inaccessible and I can't even access the cse.yyyy.edu subdomain anymore for a while (usually after 10-12 hours). I can ping the IP address of the CSE subdomain but can't ping the domain address (possibly a DNS issue?). Although I am not sure, I think restarting my local router makes the website accessible again.
The only thing out of the ordinary about the website is the insecure login page that is not using https at the moment. Other than that, everything is just straightforward laravel code adopted from the original laravel documentations.
I'd be happy to provide more information but I don't really know what kind of info I should be providing here.
What do you think might be causing this problem? Thank you in advance!
So, I figured what was causing the problem. I asked the system administrator to look into the logs of the web host. Turns out that web hosts can have a blocking mechanism in case too many 404 errors are generated. Turning off that mechanism solved my issue. Note that this wasn't something I could fix on my own and might be the same in your case if you don't have full access to your web server settings.
I built a website (localhost) using PHP and HTML through XAMPP. Now, I want to publish it online (webhost), available to everyone. What should I do? Thanks in advance!
First you need a host to upload your files. For this purchase hosting space from godaddy, bluehost or someother provider. You need to purchase a domain too. After domain and hosting space, if you have purchase linux hosting, then 90% chance is that you will get a cpanel. So log into your cpanel then navigate to 'public_html'. Inside this, using some ftp client like filezilla, or cpanel's build in upload feature, upload all your files. If your website needs a database, then you need to create a database, add database user and password using database wizard tools in cpanel.
When you will purchase a hosting, these things will be very clear once you login and expore a little.
Moving a website to another host consists of the following steps:
Moving the website's files.
Moving the website's database(s) (if any).
Configuring your application to work at the new host.
Pointing your domain's DNS to the new host.
A more detailed breakdown of these steps can be found below:
Transferring the files to the new host
The most convenient way to transfer your website's files to your new web hosting account is via FTP. You should connect to your hosting account and download the files locally to your computer. Then you have to upload them to your new hosting account's main folder (usually public_html, www or httpdocs).
More information on how to use FTP can be found in our FTP tutorial.
Transferring the website's databases
You have to export the database content from your old hosting account (usually into an SQL file), create a new database at your new hosting company and import the information in it. For detailed information on how to import/export databases via phpMyAdmin you can refer to this tutorial.
Application setup on the new host
This really depends from the website application that you are using. For step-by-step instructions on how to reconfigure some of the most popular applications
Check this out https://www.heroku.com/. The website will update as you push your code to the git. It's free, easy to use and good for small project.
I've been through the web for about 3 hours to find a solution to my issue but can not find out...
I've uploaded my laravel application on a shared host, so the file architecture looks like:
The .htaccess is the laravel default:
All my routes work fine when my website is hosted with HTTP (or in local) but when I switch it to HTTPS (applying from the OVH hosting panel) it breaks all my POST request (via ajax) to 403 error (Can't access... on this server).
Api route example: https://mywebsite.com/api/v1/login
If you have any suggestion, don't hesitate! Thanks.
I tried a lot of things, but I finally got the solution:
In my web hosting (OVH) panel, there was a firewall on the host, I disactivated it.
I regenerated the SSL certificate.
I destroyed cookies and session.
I don't know which one exactly made the trick but it saved my day!
The website I currently created isn't using a ssl cert. If I decide to buy and use a ssl cert for my website do I need to change any code on my website? My website is written in html, php and it has a mysql backend.
Or can I just purchase a new ssl cert and not change any code?
Thanks
The SSL connection is handled by the web server, the code running on top of it has nothing much to do with it. Your code should continue to run as is if the web server is configured sensibly. If you are hardcoding links using http://... somewhere or are otherwise somehow depending on the presence or absence of HTTP/HTTPS in your code, you may need to change these specific parts.