close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

htaccess

Thread began 3/17/2011 4:10 pm by mick106153 | Last modified 3/18/2011 1:38 pm by Jason Byrnes | 1573 views | 11 replies |

mick106153

htaccess

I tried Erics suggestion

<?php if((!(isset($_SERVER['HTTPS']))) || ($_SERVER['HTTPS'] == "") || ($_SERVER['HTTPS'] == "off"))header("Location: https://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']); ?>

found in this post
showthread.php?t=13376&highlight=secure+site

and I get a too many redirects failure.

Suggestions?

Mick

Sign in to reply to this post

Jason ByrnesWebAssist

use an htaccess rule instead of adding php code to the page:
force-ssl-htaccess.html

Sign in to reply to this post

mick106153

I did that first and it failed too.
I created an .htaccess file in the root of my site to throw everything into https and
with www.battleoflakeerie-bicentennial.com
I get a "too many redirects"
with battleoflakeerie-bicentennial.com
I get a mismatch

Mick

Sign in to reply to this post

Jason ByrnesWebAssist

you should work with your host on this then, since this falls under the category of server configuration.

Sign in to reply to this post

mick106153

Well no wonder!

Now they tell me it won't work with php or htaccess.
I need a javascript file which they will kindly make me for $59.95.

Any idea how to do this with javascript or where to look?

Mick

Sign in to reply to this post

mick106153

OK
I have a javascript that works.
I'm using it as an include in the site proper.
How would it be best to include it in the store as a whole?

Mick

Sign in to reply to this post

Jason ByrnesWebAssist

I'm not familiar with using javascript to force access to the site using HTPPS, but it would integrate with power store the same way it integrates into your regular site.

This does not seam to be a good way to do this to me though since javascript can be disabled in the clients browser.


to be honest, i have never dealt with a host that did not support forcing https using PHP or htaccess, I would be a little weary of this host.

Sign in to reply to this post

mick106153

Well you certainly know more about these things than I do.
And I found it strange as well.
Network Solutions is the host and I'm on a unix server. The tech there, also knowing way more about these things than I do, gave a convincing argument as to why though I can't quote his reasons.
I've been with them for a long time and am reluctant to move but will if you think it's the best thing to do.

FYI this is the script…
<script language="javascript">

if (document.location.protocol != "https:")

{

document.location.href = "https://www.battleoflakeerie-bicentennial.com" + document.location.pathname;

};

</script>

Sign in to reply to this post

Jason ByrnesWebAssist

I dont really know what convincing argument there could be for having the client computer determine whether the page is accessed using SSL.

The issue i see is this:

You as the site developer want to force the clients experience when browsing your site to use a secure HTTPS connection.

By using javascript, the choice is no longer yours really, it is up to the client browser.

If the client browser has disabled javascript, the site visitor will not be sent to the secure HTTPS address, they will remain on the HTTP address.



To use that javascript, you would add it to the html code of the power store pagess.

Sign in to reply to this post

mick106153

When I say convincing, I mean in the sense that it was convincing to me because I know nothing and he spoke with apparent authority.
Now that I've read what you have to say it makes complete sense.
I've also discovered that the code he provided throws an error on every page visible if viewed in FireFox with FireBug.

I will attempt to convince them of their error.

Can you suggest a host with 24x7 live tech?

As always
Your obedient servent
Mick

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...