How do I redirect HTTP to HTTPS?
Redirecting http:// to https:// ensures every visitor lands on the secure version of your site, even if they type or click an old insecure link.
Simplest method: in the DirhamHost control panel (via my.dirhamaday.ae), open Domains and enable the Force HTTPS Redirect option for your domain. This applies the redirect for you with no code.
Manual method (Apache/.htaccess): add these lines at the very top of the .htaccess file in your site's root folder:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
The 301 tells search engines the move is permanent, which preserves your SEO ranking.
WordPress: after enabling the redirect, update the Site Address under Settings → General to the https:// URL so internal links use it too.
Two things to watch for: make sure a valid SSL certificate is installed first, and if you use Cloudflare, set its SSL mode to Full to avoid a redirect loop. If a loop appears, our 24/7 team can fix the setting for you on WhatsApp +971 58 553 6767 or support@dirhamaday.ae.
Still need a hand? Our UAE-based team is here 24/7.