How to Force HTTPS (SSL Redirect)

Important: Before forcing HTTPS, ensure you have a valid SSL certificate installed and working properly. Test your site with https:// manually first.

Forcing HTTPS ensures all traffic to your website is encrypted and secure. This guide covers multiple methods to redirect HTTP traffic to HTTPS on your Amicatek hosting.

Method 1: Control Panel Force HTTPS Tool (Recommended)

The easiest and most reliable method using Amicatek's built-in tools.

Steps to Activate:

  1. Login to Control Panel
    Access cp.amicatek.link and login to your account
  2. Select Your Package
    Go to Manage Hosting and select Manage for your domain
  3. Access Force HTTPS
    Look for the Force HTTPS tool in the security section
  4. Enable Redirect
    Toggle the Force HTTPS option to ON
  5. Test the Redirect
    Visit your site using http:// to confirm it redirects to https://

✅ Advantages:

  • No technical knowledge required
  • Server-level implementation
  • Automatically handles subdomains
  • No file editing needed

❌ Disadvantages:

  • Control panel dependent
  • Less customization options

Method 2: .htaccess File Redirect

Manual implementation using Apache .htaccess rules for more control.

Manual Implementation:

  1. Access File Manager or FTP
    Connect to your hosting account via control panel File Manager or FTP client
  2. Locate .htaccess File
    Navigate to your website's root directory (usually public_html)
  3. Edit or Create .htaccess
    Open the .htaccess file for editing (create if it doesn't exist)
  4. Add Redirect Rules
    Add the following code at the top of your .htaccess file:
# Force HTTPS Redirect RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Alternative for specific domains: If you need to redirect only specific domains, use:
# Force HTTPS for specific domain RewriteEngine On RewriteCond %{HTTP_HOST} ^example\.com [NC,OR] RewriteCond %{HTTP_HOST} ^www\.example\.com [NC] RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Method 3: WordPress Plugin Method

For WordPress sites, you can also use the WordPress admin area or plugins.

Option A: WordPress Admin

  1. Update Site URLs
    Go to Settings > General in WordPress admin
  2. Change URLs to HTTPS
    Update both WordPress Address (URL) and Site Address (URL) to use https://
  3. Save Changes
    Click Save Changes and test your site

Option B: Using a Plugin

Popular plugins for SSL redirect:

  • Really Simple SSL - Automatic HTTPS setup
  • SSL Insecure Content Fixer - Fixes mixed content issues
  • Easy HTTPS Redirection - Simple redirect plugin

Testing Your HTTPS Redirect

Verification Steps:
Test How to Check Expected Result
Basic Redirect Visit http://yourdomain.com Automatically redirects to https://yourdomain.com
WWW Redirect Visit http://www.yourdomain.com Automatically redirects to https://www.yourdomain.com
Page-specific Visit http://yourdomain.com/page Redirects to https://yourdomain.com/page
Status Code Use browser dev tools or online checker Returns 301 (permanent redirect) status

Troubleshooting Common Issues

1. Redirect Loop Error

Symptoms: Browser shows "too many redirects" error
Solution: Check for conflicting redirect rules in .htaccess or WordPress settings

2. Mixed Content Warnings

Symptoms: Site loads with HTTPS but shows security warnings
Solution: Update internal links, images, and resources to use HTTPS or relative URLs

3. Partial Redirects

Symptoms: Some pages redirect, others don't
Solution: Clear cache, check .htaccess syntax, verify rule placement

Best Practices

  • Use 301 Redirects: Permanent redirects preserve SEO value
  • Update Internal Links: Change hardcoded HTTP links to HTTPS
  • Update Canonical URLs: Ensure SEO plugins use HTTPS URLs
  • Monitor Performance: Check site speed after implementing redirects
  • Test Thoroughly: Verify all pages and functionality work with HTTPS
  • Update External Services: Update CDNs, APIs, and third-party integrations
Need Help? If you're experiencing issues with HTTPS redirects, our support team is available 24/7 to assist you. Contact us through the control panel support section.