Divi WordPress Theme

Topic: Error while adding redirect (301) rule on Cpanel to force ssl  (Read 422 times)

Offline Chris

  • Junior Guru
  • **
  • Posts: 77
  • iTrader: +0/-0
    • View Profile
Error while adding redirect (301) rule on Cpanel to force ssl
« on: October 31, 2019, 11:50:08 AM »
I am new to server and cpanel. I have successfully purchased and installed ssl certificate on my domain. Now when I try to add redirect (301) for http to HTTPS for all traffic under cpanel its giving error ” The is error in Apache rule while processing your request”.
VPS Hosting - AccuWebHosting

Offline Kailash

  • Web Hosting Master
  • *****
  • Administrator
  • Posts: 652
  • iTrader: +153/-0
    • View Profile
Re: Error while adding redirect (301) rule on Cpanel to force ssl
« Reply #1 on: October 31, 2019, 11:50:40 AM »
Try redirecting using .htaccess rewrite rule:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]

Offline Dewlance

  • New Member
  • *
  • Posts: 42
  • iTrader: +0/-0
    • View Profile
Re: Error while adding redirect (301) rule on Cpanel to force ssl
« Reply #2 on: January 06, 2020, 01:06:13 PM »
If you are using Wordpress or any other CMS software then in URL use https:// instead of http:// or SSL plugin.
Shopify Divi WordPress Theme
Tags: