Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8619339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:18:55+00:00 2026-06-12T06:18:55+00:00

i have an ambitious plan as such : i want pages such as Registration

  • 0

i have an ambitious plan as such :
i want pages such as Registration , login , transactions to be directed to HTTPS server whereas other operations such browsing through my website like “contact us or feedback or terms and policy” i don’t want to bother with the HTTPS server i just want it to be HTTP

How can i achieve this ?

My main aim for this “selective protocol” is to speedup my site loading time

One extraneous small question too : Does a browser “cache” pages from localhost ? at least chrome doesn’t , would a browser cache webpages from the localhost (XAMPP) ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:18:56+00:00Added an answer on June 12, 2026 at 6:18 am

    This is common practice. Simply use absolute URL’s for the links to secure pages such as registration and login, so you can specify the https protocol. Other links can remain relative.

    One gotcha is that if you use relative links on a page you served with https, they will remain in https. E.g., if you have a common top-navigation bar that’s rendered on all pages… then on normal (http) pages, like your homepage, relative links in that bar will also be http. However on an https page such as registration, if the user clicks away using that top-nav bar, relative links will be https, “inheriting” the protocol of the surrounding page. Just something to be aware of. It’s not ideal to invoke https if you don’t need it, as it’s more computationally expensive to process such requests.

    Update

    Further discussion with @user1537158 clarified that https was being produced for all pages, which was not the desired behavior. Furthermore the server environment was PHP served by Apache.

    The PHP code is probably not causing that to happen, some Apache configuration is more likely the culprit. There is likely a “rewrite rule” that’s causing this behavior. A “rewrite rule” is a directive to Apache telling it to modify the incoming request in some manner, for example, redirecting it, or rejecting it.

    Here is a quick overview of what I am referring to:
    http://wiki.apache.org/httpd/RewriteHTTPToHTTPS

    So, next steps in this particular case:

    1. Get your sysadmin to double-check the configuration. It might be in httpd.conf, or other config files that are referenced by Apache, and there is a way to do this in .htaccess files too, which can reside in the individual directories being served.
      • investigate why all URL’s are getting rewritten to https
      • set up rewrite rules to force certain URL’s to be https
    2. Make sure that the links and actions inside the code (PHP, templates, javascript, etc) properly reference the absolute URL, including the https protocol, when navigating to the secure pages.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this so far but the Column 'name' is ambiguous, so I want
I have an ambitious requirement for an asp.net 2.0 web page that contains a
I have decided i'd like to do an ambitious mood change depending on the
Perhaps I'm being over-ambitious, but I'm trying to write a server program which can
I have a database with 'transactions' and 'transaction_lines'. A transaction has the basic shared
I have a fairly simple addition to the HTTP standard. An ambitious goal I
From what I have seen and read on blogs, PyPy is a very ambitious
Suppose I have an ambiguous language expressed in combinator parser. Is there a way
have written this little class, which generates a UUID every time an object of
Have a procedure which looks like Procedure TestProc(TVar1, TVar2 : variant); Begin TVar1 :=

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.