Divi WordPress Theme

Topic: Error while adding redirect (301) rule on Cpanel to force ssl  (Read 183 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: 648
  • 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]
Shopify Divi WordPress Theme
Tags: