How to decipher Firebug results in efforts to make site faster

I am trying to fix my website and found this great tool called Firebug. I was trying to pinpoint why my website is really slow at loading (wordpress based website). I was hoping to see if...

.htaccess stop a php redirect?

I currently have WordPress installed for our site - I'm trying to do a simple php redirect for our site for incoming mobile browsers to be redirected to our mobile site... However, when I put the...

readfile() returns empty file while trying to force download

I'm trying to force download of .dwg files with the following code: $filename = $_GET['f']; $upload_path = wp_upload_dir(); $src = $upload_path['basedir'] . '/' . $filename; header('Pragma:...

upstream sent too big header while reading response header from upstream

I am getting these kind of errors: 2014/05/24 11:49:06 [error] 8376#0: *54031 upstream sent too big header while reading response header from upstream, client: 107.21.193.210, server:...

Nginx FastCGI Cache $upstream_cache_status; Not Showing

So I have been trying to implement the fastcgi cache on nginx. To test whether the cache is working, I added the header to display the cache status, HIT, MISS, etc using the following...

Leverage browser caching font woff

I'm using Google pagespeed,and I got the message to leverage browser caching fonts/fontawesome-webfont.woff?v=4.5.0 (4 hours) And this is my .htaccess setting: <IfModule...

Status 403 on calling WordPress on nginx without protocol prefix

When I call my webshop in Chrome or every other web browser without the https prefix I get a 403 status. I don't know why. The error appears since I installed and deleted the hummingbird plugin by...

Adding expire headers in htaccess

Im having the problem with setting expire headers for images. (png, gif & jpg). I got 34 errors stating Leverage browser caching for the following cacheable resources. (gtmetrix.com) Below is my...

Can not connect to NGINX with Docker-Compose

I just had to tranfer my development enviroment to a new Mac and set up Docker on the new machine. I am using docker-compose to host a local wordpress with nginx. All container are starting, but...

WooCommerce NGINX caching and wc-session cookie add to cart issue

I am trying to install my WooCommerce v3.4 site to new VPS server built with Ubuntu 18.04 , PHP7.1 , and NGINX. My problem with WooCommerce session and cookie. cookies are not separate for...

PHP/Javascript - Add payment method with Stripe API

I am using Wordpress, but I am using an "out of the box" solution because my client requested it specifically. I have this Javascript which creates a form and when the form is submitted it creates...

Varnish + Wordpress + Nginx - Prevent no-store no-cache must-revalidate headers

We launched a web app about a week ago, experienced a heavy load spike and were down for almost 2 hours. I won't mention the company by name, but we were leaning on them for recommendations to...

Why does WordPress use 11 Jan 1984 as an anti-caching value for Expires headers?

The Expires header can be set to a date in the past to prevent caching, although this seems to be regarded as an unusual practice. Any date before today should work for this purpose, but Wordpress...

WooCommerce 3.5.4 and WordPress 5.0.3 REST API: Image upload broken (woocommerce_product_invalid_image_id)

I am using v2 of the REST API. This code worked fine on an older version of WordPress and WooCommerce. I cannot upload an image to a product. The first error after the upgrade I got was: array ( ...

Cannot add Expires headers in WordPress

Been trying to get rid of the "Add Expires headers" in GTmatrix, with no success. I've installed the WP Fastest Cache plugin and tried a bunch of different variations to .htaccess that I found on...

Not able to retrieve the exact queried response using Alamofire

I'm fairly new to Swift programming and developing ios apps. I'm building something that's going to retrieve posts and other information from a Wordpress website using Wordpress API. I'm using...

Restricting access by IP address to wp-admin and wp-login.php on Azure Wordpress on Linux

Using Azure Wordpress for Linux Web App, I'm trying to modify the nginx conf.d file to restrict access to wp-login.php and wp-admin directory by IP address. The directives that I'm trying to use...

400 bad request despite correct request handling

I am having trouble getting an AJAX request to work. From this earlier thread it appears the request handler and hooks to register the handler are not the issue:...

Fixing the 'Access-Control-Allow-Origin' header contains multiple values error in NGINX

I'm setting up a Wordpress website (e.g. http://api.example.com) in order to consumer its API from another static, HTML/JS website (e.g. https://test.example.com). Both website are hosted on an...

javascript : Permission denied to access property on cross-origin object despite having cors enables

I have a website "mydomain.com" including an iframe on from a different subdomain "sub.mydomain.com" containt a wordpress page. Some js in the page hooks some buttons of the iframe : var...

How to send JSON data to a REST API?

I'm sending data to a Wordpress site with the WooCommerce plugin installed using libcurl in C++ and the WooCommerce REST API. The data seems to get sent but the expected result is not shown on the...

URL Encode showing as 404 pagees

New here. I manage several Wordpress sites, but Screaming Frog SEO Spider is showing UTF-8 encoded URLs giving 404 errors for only this site. The site itself is working as intended, with URLs in...

Unable to disable TLSv1 on Nginx

I've spent the last 3 hours trying everything to disable TLSv1 on Nginx. I've scoured the web and tried everything mentioned but to no avail. Things I've tried include: reordering...

Trying to implement axios with post in body with headers inside

I'm implementing jwt with wordpress in vueNative App. When i am call the api i am getting the provisional headers are show warning. I am getting the 403 error also .below is my code that i wrote. ...

Response headers are different from browser when performed with requests.post

When performing the below HTTP request using the Python requests library, the response is as shown below: headers = { 'Host': 'cgaxis.com', 'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64;...

Unable to use http2 on nginx docker container

I want to use http2 by nginx image, but i tried very long the protocol are still using http/1.1 Dockerfile for nginx: FROM nginx COPY ./docker/nginx/etc/nginx/nginx.conf /etc/nginx/nginx.conf COPY...

Safari giving Undefined index error on AJAX form submit in WordPress

I am developing a unique cart plugin on WordPress. I am having weird Undefined index error only on Safari. I don't understand why it is only on safari while working fine on other browsers. Please...

CORS issues on Safari - despite having set allow-origin

I am dealing with a very random CORS issue. It seems to only happen on Safari. And sometimes the error dissapears randomly - without me doing any changes on server. I get the following...

NGINX - invalid number of arguments in "location" directive

I am creating an NGINX global config file to be added to a website vhost file. The code I put in the file /etc/nginx/global.d/wordpresscache.conf is: set $cache_uri $request_uri; # POST requests...

Special characters in URL leads to 403

We have a server deployed on amazon aws, the problem we are facing is that when ever there's a special character in the URL, it redirects to a 403 Forbidden error. It works fine on my local...