Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [http]

HTTP Stands for "Hyper Text Transfer Protocol", and is the protocol that applications use to access documents/webpages/data from the world wide web.

2
votes
1answer
35 views

HTTP/2.0 loads resources in parallel, will that change dependency order of CSS and JS in my HTML source code?

I'm willing to use HTTP/2.0 on my apache server. I'm using apache over HTTP/1.1 and I have structured my site like this : <head> sharedJS.js 1.js 2.js sharedCSS.css 1.css 2.css </head> ...
0
votes
0answers
7 views

How to get URLs for creating TCP connection for HTTP?

HTTP the Definite Guide says Before an HTTP client can send a message to a server, it needs to establish a TCP/IP connection between the client and server using Internet protocol (IP) addresses ...
3
votes
5answers
100 views

Is HTTP to HTTPS redirect required even if site is only on HTTPS?

I have a new website and from day one, it was on HTTPS. For example: https://www.example.com/ Do I still need to redirect HTTP to HTTPS to avoid content duplication? For example, should I still set ...
1
vote
1answer
20 views

Do most websites not use HTTP authentication header but something else for authentication?

https://curl.haxx.se/docs/httpscripting.html says It is worth noting that while this is how HTTP Authentication works, very many web sites will not use this concept when they provide logins etc. ...
1
vote
0answers
25 views

changed site from http to https and now its unreachable by google [closed]

I move my website from http to https and now it does not appear in the google search resutls, it was appearing on the top search resutls. In google search consolte when I do fetch for the website it ...
2
votes
1answer
17 views

When redirecting to another domain, to which domain will HSTS apply?

Assuming the following, what domain will be HSTS'ed for the next year, foo.com or bar.com? RTFM (RFC6797) doesn't help much. > GET / HTTP/1.1 > Host: foo.com [ ... ] < HTTP/1.1 301 Moved ...
2
votes
1answer
196 views

Nginx fails to start HTTP/2 server due to error: unknown log format

In our hosting server from the Plesk cpanel, Nginx is configured to work as a reverse proxy engine. As I need to enable HTTP/2 that can speed up the loading time of Plesk and hosted websites. ...
1
vote
1answer
34 views

Site works ok on HTTP, not on HTTPS

I have the following on sites-enabled: 000-default.conf default-ssl.conf 000-default.conf has: <VirtualHost *:80> ServerName www.optonet.inter.edu ServerAdmin webmaster@opto.inter.edu ...
3
votes
0answers
23 views

Header to describe available `content-type` responses?

It's a little cumbersome to scrape through the HTTP RFC for this particular question, so I'm hoping someone can help me short-circuit an answer: Does the HTTP spec contain functionality for a server ...
1
vote
0answers
50 views

IIS website only allowing https connection, no http

We are running two websites on IIS (site1.site.example and site2.site.example). Both sites have the same bindings but with different host names (as above), on IP address * and for ports 80 and 443 (...
1
vote
0answers
11 views

Installing a free world-compatible SSL certificate in WHM/Cpanel

It's been a while but here I am again. I just found out today that users of chrome 69 or later will see a big "insecure" message for webpages beginning with http:// such as mine and even Bing's ...
2
votes
2answers
449 views

How is it best to redirect http to https in cPanel?

I am setting up a new site on a domain that has an SSL certificate. The DNS is all configured correctly and I can access the site on either http://example.com or https://example.com URLs. Currently, ...
1
vote
0answers
20 views

Social sharing count (Specially Facebook and Twitter) when moving to HTTPS

How can I get back the social sharing count (Specially Facebook and Twitter) when moving to HTTPS? Note : WordPress Site (I don't think platform does not related to this question. But if it is ...
3
votes
0answers
61 views

Responding other 'Content-Type' different from 'Accept' list

As all you know (else follow this question) the requesting Accept header allows client to specify the expected MIME types for response content. But my case is: client indicates an Accept of type ...
2
votes
1answer
379 views

How many concurrent HTTP connections from a single tab do modern browsers support?

I'm trying to figure out how many concurrent HTTP connections from a single tab modern browsers support. I've found old sources saying 10 for Chrome and 17 for Firefox I'm confused by this because ...
4
votes
1answer
762 views

Is a PHP POST using cURL from HTTPS site to HTTP endpoint encrypted securely?

I have a website residing on a domain with a valid SSL certificate that is fully using HTTPS. If I take form data from this site that is secured with an SSL and send it to a non-secure HTTP endpoint ...
0
votes
1answer
81 views

Omitting “http://www.” from my URL doesn't load the mobile site

I designed and uploaded a site on a mobile format. It shows up fine but ONLY if I type out the http://. The client wants it to be as simple as possible. How can I have it automatically insert ...
0
votes
2answers
77 views

General questions on operation of SSL secured sites [closed]

I am trying to get some understanding on differences between unsecured (http:// accessed) and SSL secured (https://) websites on Apache servers. So I am not trying to solve a specific problem right ...
0
votes
1answer
220 views

htaccess force HTTPS except two pages

I would like to force HTTPS (SSL) on every page except /es-ES/calculador-cuatro-pilares-destino-bazi.html or /en-US/bazi-calculator.html. How can I do that? I am using Apache HTTP Server (ver 2.2.x). ...
1
vote
1answer
666 views

How to get full URL [keyword] from google search using http_referer?

I need to get the keyword what user's searched in the google search engine. I tried http_referer in php but got only the origin not the full url and keyword. Kindly share some idea about. Thanks...
1
vote
2answers
79 views

When redirecting HTTP to HTTPS, which URLs should be in the sitemaps?

Recently I've installed SSL certificate on my website and added a 301 redirection on my website for all links. Previously my sitemap included HTTP links and almost my 5000+ pages are now indexed on ...
1
vote
1answer
962 views

How to avoid SSL warnings about certificate not for the current site when redirecting alternate domains?

I have multiple domains forward issue. Domains with plurals and singular e.g.: example.com, examples.com, example.biz, examples.biz I forwarded all of them to https://examples.com and https://...
1
vote
1answer
21 views

Is Google analytics tracking all of my traffic? on all accessible variations/properties

I am wondering is Google analytics track all of my properties? https://www.example.com (SSL + www) https://example.com (SSL - www) http://www.example.com (Non-SSL + WWW) http://example.com (Non-SSL - ...
2
votes
1answer
388 views

404 status code for HTTP/2

How does a correct 404 status code look like on using HTTP/2 protocol? HTTP/1.1 404 Not Found seems to be for the previous protocol version, but I can't find anywhere something meaningful about status ...
1
vote
0answers
46 views

My site doesn't have a SSL certificate, but Google is indexing the HTTPS version [duplicate]

Redirecting to HTTPS causes an error, Google should be indexing the HTTP version. How can I enforce that? I have no forms or logins on my website, I have no SSL certificate. For example: Searching ...
2
votes
0answers
34 views

httpS pages crawled while never bought SSL Certificate [closed]

I have a website built in WP. I never bought any ssl certificate for my website, nor a single link pointing to httpS, however, 02 of the pages are crawled with httpS, while rest pages are with http. ...
5
votes
1answer
2k views

What happens if you don't set cache-control header?

What happens if you don't set the cache-control header? Does HTTP specify a default behaviour that clients should follow or is it up to the clients to decide? In Chrome, I have seen some Javascript ...
1
vote
0answers
232 views

Can a content be cached even if the max-age header is not set and vice versa?

As far as I understand, when a request is made for the very first time, the browser will download the resource from the server. If the Cache-Control: private,max-age=value header is present, then it ...
1
vote
0answers
81 views

Why is my Last-Modified header always sent using GMT timezone?

I want to send the last-modified in IST timezone, But it always sends in GMT. What is wrong with this PHP code? echo "Timezone " . date_default_timezone_get () ; //==>verified, timezone set ...
5
votes
2answers
164 views

Will my Facebook comments get lost under these scenarios?

I want to integrate Facebook comments to my blog. According to my research, the page is treated as an object. So all the comments are tied to this object. This object itself is the page URL. Now I ...
0
votes
1answer
89 views

HTTP webpage is showing “Not Secure” in Chrome

I've called GoDaddy a few different times and they said that it looks like it is a problem with my HTML file. Except, my HTML file is the basic outline of a webpage, nothing fancy at all. Chrome ...
1
vote
1answer
1k views

How do I prevent a rewrite rule from executing for just one subdomain?

In the root level .htaccess I have added a condition to rewrite HTTP requests as HTTPS: RewriteEngine On RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} This applies to ...
2
votes
2answers
76 views

Can WordPress accept HTTP and HTTPS connections on the same blog?

While working on the transition from HTTP to HTTPS, I have configured all websites to accept both HTTP and HTTPS connections. This worked for everything except WordPress. There is an option in the ...
0
votes
0answers
32 views

Which websites should I really add to Google Search Console? [duplicate]

Right now I have all versions of my website added as separate properties in Google Search Console, meaning: http://example.com http://www.example.com https://example.com https://www.example.com ...
2
votes
1answer
106 views

What is the most relevant HTTP status when waiting for user activation?

I'm coding a user registration process and wondering if 200 (OK) is the most relevant HTTP status for response after username/password creation, when waiting for user activation. HTTP status 202 (...
1
vote
3answers
88 views

When converting a WordPress site from HTTP to HTTPS, do all hard-coded HTTP references need to be updated?

We have a Wordpress HTTP site which we wish to convert to HTTPS or SSL. Do we have to find all mentions of hard coded HTTP resources or can we simply do a 301 redirect in .htaccess, and how do we do ...
3
votes
1answer
770 views

htaccess 301 to redirect .com to .co.uk, http to https and non-www to www subdomain

I have example.co.uk and example.com domain names. The main website is example.co.uk. I have an SSL certificate on the domain example.co.uk. I want the .htaccess file to 301 redirect everything ...
2
votes
2answers
56 views

http2 and Alternate-Protocol, ngnix open src web server config

My goal is to know if my android app and my browser are talking to my web server on http2. Using open source nginx stable 1.12 on linux. Looking at the network or other tools of firefix (version 54) ...
2
votes
1answer
332 views

HTML and SEO - Relative Links and Absolute Links [duplicate]

Question: Does it matter if some links are full URL: ie: http://example.com/contact-us.html (absolute) versus relative (example.com/contact-us.html) for SEO purposes? The difference is when using ...
4
votes
2answers
2k views

What benefits are there to having both HTTP and HTTPS protocols indexed by Google?

Using HTTPS seems to be standard and more and more sites are making the switch and redirecting all users from HTTP to HTTPS. However I have come across some large sites that keep HTTP and HTTPS both ...
1
vote
1answer
104 views

Which is longer cached by SE robots or browsers, redirect 301 or 302

I have looked on Stack Exchange but didn't find the solution for my problem. The problem: I have a website and want to become an SEO hero. So, I also need to choose status codes... I know that there ...
0
votes
1answer
680 views

Redirecting FTP Browser Requests to HTTP

Is there - and if yes, what is it - a solution to the following task: I want to redirect browser requests targeting ftp://www.example.net to http://www.example.com I am aware that ftp:// is ...
1
vote
1answer
57 views

Placing javascripts at the page's bottom and HTTP/2

Does the placement of javascripts at the bottom of html document still gives any loadtime wins, if the site runs on HTTP/2?
1
vote
1answer
884 views

defer img loading / CSP: allow embeded img

My website is defering some img loading by setting the img src value by JavaScript (from the img data-src value). In order to have still valid HTML as long as the URL is not set to img src, I am ...
3
votes
1answer
2k views

Does changing from HTTPS to HTTP kill my backlinks?

I had only my main page changed to HTTP to test out if I want to change from HTTPS to HTTP. All my backlinks are to my HTTPS site. Will I lose all of my backlinks and have to start over when switching ...
0
votes
1answer
59 views

If i redirected my website from “HTTPS” to “HTTP”, will i still be getting a ranking boost?

Google announced that going HTTPS will give you a ranking boost. So i bought SSL certificate to boost my rank and redirected all "HTTP" to "HTTPS" from .htacess... then i realized that it's not ...
6
votes
2answers
273 views

How to check if a visitor is on my website?

I want to build a website that only one person at a time can visit. How would I accomplish this task? I looked at Web counters built in php, but I don't think this is the right solution. Is there an ...
4
votes
2answers
564 views

Can basic HTTP password authentication interfere with CDN access?

I'm doing my best to ask this question, I'm stepping across domains here to cover for another team that is MIA on this task. Please guide me if the question sounds stupid. We are dealing with a ...
8
votes
2answers
12k views

What is the purpose of GETting this external file?

A website I am visiting occasionally makes XHR requests to http://detectportal.firefox.com/success.txt which is a text/plain resource whose body contains the text success. I am unable to figure out ...
2
votes
0answers
37 views

Google page insights score improvement (mostly images and external http requests)

So I have this food blog that is based on wordpress but everything is coded from scratch (apart from a few plugins) as I wanted to have as much control over http requests etc as possible... These are ...