Welcome to WebmasterWorld Guest from 54.162.240.235

Forum Moderators: phranque

Message Too Old, No Replies

Easy to forward http to https?

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

10+ Year Member



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 [mydomain.com...]

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?

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

5+ Year Member



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.

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

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.
9:23 pm on Aug 16, 2007 (gmt 0)

10+ Year Member



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.

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

WebmasterWorld Senior Member 10+ Year Member



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.

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

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



This page

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

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

5+ Year Member



RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} /account.php
RewriteRule ^(.*)$ [example.com...] [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 [example.com...] 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?

 

Featured Threads

Hot Threads This Week

Hot Threads This Month