logo
down
shadow

Forcing SSL only on the main domain on cPanel


Forcing SSL only on the main domain on cPanel

By : Vijay Venugopal
Date : November 16 2020, 06:23 AM
this will help You just need another RewriteCond and check for the HTTP_HOST so that the RewriteRule is not applied to domains that don't need to have https:
code :
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^no-https-needed.example.com$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}


Share : facebook icon twitter icon
Cpanel Addon Domain Email Migrating to Own Cpanel Account

Cpanel Addon Domain Email Migrating to Own Cpanel Account


By : landril82
Date : March 29 2020, 07:55 AM
wish helps you I believe I can assist you. I suggest you create a test/fake domain to test! You can use your hosts file to point to a fake domain at your cpanel server!
Lets get started:
How to change main domain content with cPanel

How to change main domain content with cPanel


By : Peng Gao
Date : March 29 2020, 07:55 AM
To fix this issue If I understood right:
Go to "Parked Domains" in cPanel and enter the other domains you want to point to the same /home/my_name/public_html/. All domains will be sharing the same content.
Forcing HTTPS for Main Domain, Not Sub-Domain

Forcing HTTPS for Main Domain, Not Sub-Domain


By : Haakon H
Date : March 29 2020, 07:55 AM
around this issue I have my site and several sub-domains on a c-Panel server and would like to achieve the following functionality: , Try :
code :
RewriteEngine On

#Exclude subdomain
RewriteCond %{HTTP_HOST} !^sub.domain.com$
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
RewriteCond %{HTTP_HOST} !^foo.domain.com$
RewriteCond %{HTTP_HOST} !^bar.domain.com$
 RewriteCond %{HTTP_HOST} !^(foo|bar).domain.com$
(Cpanel Centos 7.2) Prevent external domain to access my domain just by pointing ip address

(Cpanel Centos 7.2) Prevent external domain to access my domain just by pointing ip address


By : Jakub Kubaliak
Date : March 29 2020, 07:55 AM
wish help you to fix your issue You can't really 'prevent' it - for example, I could buy a domain name and point it at your website.
However, what you can do is add a 'redirect' to your site. So, if the domain used to access your site is not your domain, then redirect the client to your domain name
How to migrate a sub-domain from a shared hosting cpanel to a VPS cpanel

How to migrate a sub-domain from a shared hosting cpanel to a VPS cpanel


By : Pál Ryšavý
Date : March 29 2020, 07:55 AM
I wish this help you There is a functionality in WHM (WHM 64+ versions I believe) that allows you to to convert an addon domain inside a cPanel account into an invidiual cPanel account.
Since you have multiple domains on the same account and I suppose you have websites for those domains as well, then those domains are added as "addon domains" into your cPanel account. So use that WHM convertor tool, convert the desired domain from that cPanel account as a new invidiual cPanel account.
Related Posts Related Posts :
  • How to root multiple domains to multiple subfolders
  • .htaccess not working on localhost
  • .htaccess url rewrite GET parameter and remove .php without breaking javascript/css
  • .htaccess redirect non-WWW to WWW
  • Use same variable name in htaccess for rewriting PHP page
  • ERROR: CCurlFile::FillBuffer - Failed: HTTP response code said error(22) xbmc
  • Rewrite URL empty values in query string - Double slashes, Optional Parameters
  • RewriteRule for htaccess note working
  • how to use mod_rewrite on a file in a folder?
  • How to rewrite then redirect the old URL to the rewrited URL
  • htaccess rewrite all urls with a certain query to a parent directory
  • .htaccess cascading conditions
  • How to create clean url using .htaccess for multiple parameters
  • How to redirect all urls within a directory to a hashed version of the same url?
  • shadow
    Privacy Policy - Terms - Contact Us © ourworld-yourmove.org