homepage Welcome to WebmasterWorld Guest from 54.204.215.209
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque & physics

Webmaster General Forum

    
Easy to forward http to https?
luke175




msg:3423404
 3:00 am on Aug 16, 2007 (gmt 0)

I have a certain page of standard html and I would like to make it so that when someone clicks [mydomain.com...] they are automatically directed to https://mydomain.com/page.htm

This page is indexed and I have various links about the web so I can't just change it to https and would prefer visitors see the secure version of it on my site.

Any ideas?

 

SixTimesEight




msg:3423444
 3:58 am on Aug 16, 2007 (gmt 0)

I think this will handle it in .htaccess if you're running apache

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} /page.htm
RewriteRule ^(.*)$ https://example.com/page.htm [R=301,L]

Using a 301 will instruct the search engines that your page has been permanently moved to the new location and I think most of them are smart enough now to basically transfer your placements and rankings to the destination of the redirect.

rocknbil




msg:3424132
 7:53 pm on Aug 16, 2007 (gmt 0)

Are you prepared to take the performance hit from showing all pages on the secure server? Secure pages are much slower than non-secure pages, it may be a better idea to display secure pages only when required.

luke175




msg:3424195
 9:23 pm on Aug 16, 2007 (gmt 0)

Are you prepared to take the performance hit from showing all pages on the secure server? Secure pages are much slower than non-secure pages, it may be a better idea to display secure pages only when required.

This page has a form on it where people can submit their info, I thought perhaps I would get more submissions if the page were secure.

Worth testing at least I'd think.

stapel




msg:3424232
 10:05 pm on Aug 16, 2007 (gmt 0)

luke175 said: This page has a form on it where people can submit their info, I thought perhaps I would get more submissions if the page were secure.

Are they submitting sensitive information? If not, then I don't see any need to have a "secure" form.

Just my opinion, of course; I could be wrong....

Eliz.

rocknbil




msg:3424525
 10:25 am on Aug 17, 2007 (gmt 0)

This page

Sorry luke, I don't know WHY I interpreted that as all pages, carry on!

druidjaidan




msg:3424588
 12:02 pm on Aug 17, 2007 (gmt 0)

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} /account.php
RewriteRule ^(.*)$ https://example.com/account.php [R=301,L]

ok so I have a similar problem, I have an account management page...since this is e-commerce this needs to be a secure page (this is also where orders and such are submitted). I've used relative URL's on my site so when a use is in the account page (http://example.com/account.php which using the over redirect should become https://example.com/account.phh), if they click a nav link away from there...it will stay https? Right?

Since I don't want people viewing the other pages secure, does that mean I need to add another redirect to regular http for all other pages on my site?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved