Jump to content

htaaccess rewrite rule for http to https for SSL?


chris42259

Recommended Posts

Thanks PlusPlus.

One more question. Do I need to go through and change short relative URLs to the full URLs? Like in the following example from the footer:

 

<li><a href="cart.php" title="{$LANG.ordertitle}"><img src="templates/{$template}/images/icons/cart.png" alt="{$LANG.ordertitle}" width="45" height="45" border=0" class="absmiddle" /></a> <a href="cart.php" title="{$LANG.ordertitle}">{$LANG.ordertitle}</a></li>

 

Would I need to change <a href="cart.php" to <a href="https://www.mysite.com/whmcs/cart.php"?

Link to comment
Share on other sites

I believe if there was anything there, it'd be in my header or footer for the template I'm using, because as far as I remember, that's the only things I've altered. And in my header and footer, I've got all the http changed to https.

 

Here's the header and below is the footer. Can u see what's wrong? The official help of whmcs seems to have abandoned me.

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="https://www.w3.org/1999/xhtml" dir="ltr" lang="en">

 

<head profile="https://gmpg.org/xfn/11">

<meta https-equiv="Content-Type" content="text/html; charset=UTF-8" />

<link rel="pingback" href="https://miraclewebsites.com/xmlrpc.php'>https://miraclewebsites.com/xmlrpc.php" />

 

<title>Miracle Websites</title>

<link rel='shortcut icon' href='https://www.miraclewebsites.com/images/favicon3.ico' />

<link rel="alternate" type="application/rss+xml" title="Miracle Websites » Feed" href="https://miraclewebsites.com/?feed=rss2'>https://miraclewebsites.com/?feed=rss2" />

<link rel="alternate" type="application/rss+xml" title="Miracle Websites » Comments Feed" href="https://miraclewebsites.com/?feed=comments-rss2'>https://miraclewebsites.com/?feed=comments-rss2" />

<link rel='stylesheet' id='admin-bar-css' href='https://miraclewebsites.com/wp-includes/css/admin-bar.css?ver=20110622''>https://miraclewebsites.com/wp-includes/css/admin-bar.css?ver=20110622' type='text/css' media='all' />

<link rel='stylesheet' id='suffusion-theme-css' href='https://miraclewebsites.com/wp-content/themes/suffusion/style.css?ver=3.8.2''>https://miraclewebsites.com/wp-content/themes/suffusion/style.css?ver=3.8.2' type='text/css' media='all' />

<link rel='stylesheet' id='suffusion-theme-skin-1-css' href='https://miraclewebsites.com/wp-content/themes/suffusion/skins/light-theme-orange/skin.css?ver=3.8.2''>https://miraclewebsites.com/wp-content/themes/suffusion/skins/light-theme-orange/skin.css?ver=3.8.2' type='text/css' media='all' />

<!--[if !IE]>--><link rel='stylesheet' id='suffusion-rounded-css' href='https://miraclewebsites.com/wp-content/themes/suffusion/rounded-corners.css?ver=3.8.2''>https://miraclewebsites.com/wp-content/themes/suffusion/rounded-corners.css?ver=3.8.2' type='text/css' media='all' />

<!--<![endif]-->

<!--[if gt IE 8]><link rel='stylesheet' id='suffusion-rounded-css' href='https://miraclewebsites.com/wp-content/themes/suffusion/rounded-corners.css?ver=3.8.2''>https://miraclewebsites.com/wp-content/themes/suffusion/rounded-corners.css?ver=3.8.2' type='text/css' media='all' />

<![endif]-->

<!--[if lt IE 8]><link rel='stylesheet' id='suffusion-ie-css' href='https://miraclewebsites.com/wp-content/themes/suffusion/ie-fix.css?ver=3.8.2''>https://miraclewebsites.com/wp-content/themes/suffusion/ie-fix.css?ver=3.8.2' type='text/css' media='all' />

<![endif]-->

<link rel='stylesheet' id='suffusion-generated-css' href='https://miraclewebsites.com?ver=3.8.2&suffusion-css=css''>https://miraclewebsites.com?ver=3.8.2&suffusion-css=css' type='text/css' media='all' />

<script type='text/javascript' src='https://miraclewebsites.com/wp-includes/js/l10n.js?ver=20101110'></script>

<script type='text/javascript' src='https://miraclewebsites.com/wp-includes/js/comment-reply.js?ver=20090102'></script>

<script type='text/javascript' src='https://miraclewebsites.com/wp-includes/js/jquery/jquery.js?ver=1.6.1'></script>

<script type='text/javascript'>

/* <![CDATA[ */

var Suffusion_JS = {

wrapper_width_type_page_template_1l_sidebar_php: "fixed",

wrapper_max_width_page_template_1l_sidebar_php: "1200",

wrapper_min_width_page_template_1l_sidebar_php: "600",

wrapper_orig_width_page_template_1l_sidebar_php: "75",

wrapper_width_type_page_template_1r_sidebar_php: "fixed",

wrapper_max_width_page_template_1r_sidebar_php: "1200",

wrapper_min_width_page_template_1r_sidebar_php: "600",

wrapper_orig_width_page_template_1r_sidebar_php: "75",

wrapper_width_type_page_template_1l1r_sidebar_php: "fixed",

wrapper_max_width_page_template_1l1r_sidebar_php: "",

wrapper_min_width_page_template_1l1r_sidebar_php: "600",

wrapper_orig_width_page_template_1l1r_sidebar_php: "75",

wrapper_width_type_page_template_2l_sidebars_php: "fixed",

wrapper_max_width_page_template_2l_sidebars_php: "1200",

wrapper_min_width_page_template_2l_sidebars_php: "600",

wrapper_orig_width_page_template_2l_sidebars_php: "75",

wrapper_width_type_page_template_2r_sidebars_php: "fixed",

wrapper_max_width_page_template_2r_sidebars_php: "1200",

wrapper_min_width_page_template_2r_sidebars_php: "600",

wrapper_orig_width_page_template_2r_sidebars_php: "75",

wrapper_width_type: "fixed",

wrapper_max_width: "1200",

wrapper_min_width: "600",

wrapper_orig_width: "75",

wrapper_width_type_page_template_no_sidebars_php: "fixed",

wrapper_max_width_page_template_no_sidebars_php: "1200",

wrapper_min_width_page_template_no_sidebars_php: "600",

wrapper_orig_width_page_template_no_sidebars_php: "75"

};

/* ]]> */

</script>

<script type='text/javascript' src='https://miraclewebsites.com/wp-content/themes/suffusion/scripts/suffusion.js?ver=3.8.2'></script>

<link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://miraclewebsites.com/xmlrpc.php'>https://miraclewebsites.com/xmlrpc.php?rsd" />

<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="https://miraclewebsites.com/wp-includes/wlwmanifest.xml'>https://miraclewebsites.com/wp-includes/wlwmanifest.xml" />

<link rel='index' title='Miracle Websites' href='https://miraclewebsites.com''>https://miraclewebsites.com' />

<link rel='next' title='Newest' href='https://miraclewebsites.com/?page_id=441''>https://miraclewebsites.com/?page_id=441' />

<link rel='canonical' href='https://miraclewebsites.com/''>https://miraclewebsites.com/' />

<!-- Start Additional Feeds -->

<!-- End Additional Feeds -->

<style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>

<style type="text/css" media="print">#wpadminbar { display:none; }</style>

<style type="text/css" media="screen">

html { margin-top: 28px !important; }

* html body { margin-top: 28px !important; }

</style>

 

{if $systemurl}<base href="{$systemurl}" />

{/if}<link rel="stylesheet" type="text/css" href="templates/{$template}/style.css" />

<script type="text/javascript" src="includes/jscript/jquery.js"></script>

{if $livehelpjs}{$livehelpjs}

{/if}

 

</head>

<body class="home page page-id-58 page-template page-template-no-sidebars-php logged-in admin-bar">

<script type='text/javascript'>

//Menu effects

var suf_nav_delay = 500;

var suf_nav_effect = "fade";

var suf_navt_delay = 500;

var suf_navt_effect = "fade";

var suf_jq_masonry_enabled = "disabled";

</script>

<div id='nav-top' class='tab fix'>

<div class='col-control'>

<ul class='sf-menu'>

<li class="cat-item cat-item-4"><a href="https://miraclewebsites.com/?cat=4'>https://miraclewebsites.com/?cat=4" >How-To Videos</a>

<ul class='children'>

<li class="cat-item cat-item-8"><a href="https://miraclewebsites.com/?cat=8'>https://miraclewebsites.com/?cat=8" >Funny</a>

</li>

<li class="cat-item cat-item-5"><a href="https://miraclewebsites.com/?cat=5'>https://miraclewebsites.com/?cat=5" >Set-Up Your Website</a>

</li>

<li class="cat-item cat-item-6"><a href="https://miraclewebsites.com/?cat=6'>https://miraclewebsites.com/?cat=6" >Use Your Website</a>

</li>

</ul>

</li>

 

</ul>

</div><!-- /.col-control -->

</div><!-- /#nav-top -->

<div id="wrapper" class="fix">

<div id="header-container" class="fix">

<div id="header" class="fix">

<h2 class="blogtitle"><a href="https://miraclewebsites.com"><img src='https://www.miraclewebsites.com/images/headers/header99999.png' alt='Miracle Websites'/></a></h2>

<div class="description"></div>

</div><!-- /header -->

<div id="nav" class="tab fix">

<div class='col-control'>

<ul class='sf-menu'>

<li class="cat-item cat-item-4"><a href="https://miraclewebsites.com/?cat=4'>https://miraclewebsites.com/?cat=4" >How-To Videos</a>

<ul class='children'>

<li class="cat-item cat-item-8"><a href="https://miraclewebsites.com/?cat=8'>https://miraclewebsites.com/?cat=8" >Funny</a>

</li>

<li class="cat-item cat-item-5"><a href="https://miraclewebsites.com/?cat=5'>https://miraclewebsites.com/?cat=5" >Set-Up Your Website</a>

</li>

<li class="cat-item cat-item-6"><a href="https://miraclewebsites.com/?cat=6'>https://miraclewebsites.com/?cat=6" >Use Your Website</a>

</li>

</ul>

</li>

<li id="linkcat-" class="linkcat"><a href='#'>Customers</a>

<ul class='xoxo blogroll'>

<li><a href="https://wordpress.org/extend/themes/">Themes</a></li>

<li><a href="https://wordpress.org/news/">WordPress Blog</a></li>

 

</ul>

</li>

 

</ul>

<!-- right-header-widgets -->

<div id="right-header-widgets" class="warea">

 

<form method="get" class="searchform" action="https://miraclewebsites.com/">

<input type="text" value="Search" name="s" class="searchfield" onfocus="if (this.value == 'Search') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search';}" />

<input type="submit" class="searchsubmit" value="" name="searchsubmit" />

</form>

</div>

<!-- /right-header-widgets -->

</div><!-- /col-control -->

</div><!-- /nav -->

</div><!-- //#header-container -->

<div id="container" class="fix">

 

<div id="content_left">

<h1>{$pagetitle}</h1>

<p class="breadcrumb">{$breadcrumbnav}</p>

__________________________________________________________________________________

 

 

{if $langchange}<div align="right">{$setlanguage}</div><br />{/if}

</div>

<div id="side_menu">

<p class="header">{$LANG.quicknav}

<ul>

<li><a href="index.php"><img src="templates/{$template}/images/icons/portal.png" alt="{$LANG.globalsystemname}" width="45" height="45" border="0" class="absmiddle" /></a> <a href="index.php" title="{$LANG.globalsystemname}">{$LANG.globalsystemname}</a></li>

<li><a href="clientarea.php"><img src="templates/{$template}/images/icons/client.png" alt="{$LANG.clientareatitle}" width="45" height="45" border="0" class="absmiddle" /></a> <a href="clientarea.php" title="{$LANG.clientareatitle}">{$LANG.clientareatitle}</a></li>

<li><a href="announcements.php" title="{$LANG.announcementstitle}"><img src="templates/{$template}/images/icons/announcements.png" alt="{$LANG.announcementstitle}" width="45" height="45" border="0" class="absmiddle" /></a> <a href="announcements.php" title="{$LANG.announcementstitle}">{$LANG.announcementstitle}</a></li>

<li><a href="knowledgebase.php" title="{$LANG.knowledgebasetitle}"><img src="templates/{$template}/images/icons/knowledgebase.png" alt="{$LANG.knowledgebasetitle}" width="45" height="45" border="0" class="absmiddle" /></a> <a href="knowledgebase.php" title="{$LANG.knowledgebasetitle}">{$LANG.knowledgebasetitle}</a></li>

<li><a href="submitticket.php" title="{$LANG.supportticketssubmitticket}"><img src="templates/{$template}/images/icons/ticket.png" alt="{$LANG.supportticketssubmitticket}" width="45" height="45" border="0" class="absmiddle" /></a> <a href="submitticket.php" title="{$LANG.supportticketspagetitle}">{$LANG.supportticketssubmitticket}</a></li>

<li><a href="downloads.php" title="{$LANG.downloadstitle}"><img src="templates/{$template}/images/icons/download2.png" alt="{$LANG.downloadstitle}" width="45" height="45" border="0" class="absmiddle" /></a> <a href="downloads.php" title="{$LANG.downloadstitle}">{$LANG.downloadstitle}</a></li>

<li><a href="cart.php" title="{$LANG.ordertitle}"><img src="templates/{$template}/images/icons/cart.png" alt="{$LANG.ordertitle}" width="45" height="45" border=0" class="absmiddle" /></a> <a href="cart.php" title="{$LANG.ordertitle}">{$LANG.ordertitle}</a></li>

</ul></p>

{if $livehelp}

<p class="header">{$LANG.chatlivehelp}</p>

{$livehelp}

{/if}

{if $loggedin}

<p class="header">{$LANG.accountinfo}</p>

<p><strong>{$clientsdetails.firstname} {$clientsdetails.lastname} {if $clientsdetails.companyname}({$clientsdetails.companyname}){/if}</strong><br />

{$clientsdetails.address1}, {$clientsdetails.address2}<br />

{$clientsdetails.city}, {$clientsdetails.state}, {$clientsdetails.postcode}<br />

{$clientsdetails.countryname}<br />

{$clientsdetails.email}<br />

 

<a href="logout.php" title="Logout"><img src="templates/{$template}/images/icons/logout.png" alt="Logout" width="45" height="45" border="0" class="absmiddle" />Logout</a>

 

 

 

<br />

{if $addfundsenabled}<img src="templates/{$template}/images/icons/money.gif" alt="Add Funds" width="22" height="22" border="0" class="absmiddle" /> <a href="clientarea.php?action=addfunds">{$LANG.addfunds}</a>{/if}</p>

<p class="header">{$LANG.accountstats}</p>

<p>{$LANG.statsnumproducts}: <strong>{$clientsstats.productsnumactive}</strong> ({$clientsstats.productsnumtotal})<br />

{$LANG.statsnumdomains}: <strong>{$clientsstats.numactivedomains}</strong> ({$clientsstats.numdomains})<br />

{$LANG.statsnumtickets}: <strong>{$clientsstats.numtickets}</strong><br />

{$LANG.statsnumreferredsignups}: <strong>{$clientsstats.numaffiliatesignups}</strong><br />

{$LANG.statscreditbalance}: <strong>{$clientsstats.creditbalance}</strong><br />

{$LANG.statsdueinvoicesbalance}: <strong>{if $clientsstats.numdueinvoices>0}<span class="red">{/if}{$clientsstats.dueinvoicesbalance}{if $clientsstats.numdueinvoices>0}</span>{/if}</strong></p>

{else}

<form method="post" action="{$systemsslurl}dologin.php">

<p class="header">{$LANG.clientlogin}</p>

<p><strong>{$LANG.email}</strong><br />

<input name="username" type="text" size="25" />

</p>

<p><strong>{$LANG.loginpassword}</strong><br />

<input name="password" type="password" size="25" />

</p>

<p>

<input type="checkbox" name="rememberme" />

{$LANG.loginrememberme}</p>

<p>

<input type="submit" class="submitbutton" value="{$LANG.loginbutton}" />

</p>

</form>

<p class="header">{$LANG.knowledgebasesearch}</p>

<form method="post" action="knowledgebase.php?action=search">

<p>

<input name="search" type="text" size="25" /><br />

<select name="searchin">

<option value="Knowledgebase">{$LANG.knowledgebasetitle}</option>

<option value="Downloads">{$LANG.downloadstitle}</option>

</select>

<input type="submit" value="{$LANG.go}" />

</p>

</form>

{/if}

{if $twitterusername}<br />

<p align="center"><a href="https://twitter.com/{$twitterusername}" target="_blank"><img src="images/twitterfollow.png" width="150" border="0" alt="{$LANG.twitterfollow}" /></a></p>

{/if}

</div>

<div class="clear"></div>

</div>

</body>

</html>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated