Skip to main content

Unanswered Questions

204 questions with no upvoted or accepted answers
5 votes
0 answers
690 views

Using Nginx to rewrite a friendly URL to index.php handler gives 404 errors

I am having some issues getting the below to work the way I expect. What I am trying to do is take a url like https://example.com/TOPIC/courses/details/143911 but have it sent to php with the URI ...
4 votes
0 answers
86 views

Weird increase of url visited reported in Google Analytics

Oddly, there has been lately a very significant increase of 404 errors detected in Google Console Insights for some website I run. I checked Google Analytics for that website: the URLs that give the ...
4 votes
0 answers
256 views

Configure Nginx to serve the home page and a sub-directory with WordPress and everything else with Laravel

I'm currently facing a problem where a single vhost must serve two apps. One of them is WordPress, the other one is Laravel. I've managed to get it some kind of working using a URL prefix, but I can't ...
4 votes
0 answers
2k views

Matrix URL vs query string URL

Matrix URL is a way to pass data in URL to the program, it's like a query string, but a bit nicer. Matrix URL notation is an idea first introduced in a 1996 proposal by the founder of the web, ...
3 votes
0 answers
330 views

Removed AMP for WordPress Plugin and now "/amp" and "?nonamp=1" URLs have infinite self-redirect

Google Search Console(GSC) shows "Page with redirect" errors on my website. According to GSC, these posts are not indexed. That is fine. But look like the URLs with "/amp" and &...
3 votes
0 answers
43 views

After changing URLs, how do I clear the old URLs out of Google Search Console?

I've recently changed the url structure of my site for SEO purposes from... example.com/this_is_the_page ...to... example.com/this-is-the-page The sitemap.xml is up to date and Google Search Console ...
3 votes
0 answers
242 views

Cross origin resource policy violation for JS file when setting COEP, COOP and CORP headers

What is the best way to deal with the new security headers? Cross-Origin-Embedder-Policy (COEP) https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy Cross-Origin-...
3 votes
0 answers
56 views

With WordPress multi-language site in English and Spanish, Google doesn't index the URLs with the /es/

I have launched a website with English and Spanish languages. I've done it using WordPress multi-language (WPML), but I'm having a lot of problems indexing and ranking the Spanish URLs, which appear ...
3 votes
0 answers
60 views

NGINX configuration for the same folder protection rewrites in each of thousands of subdirectories

The following code allows me to protect a specific folder with the membership software we're using. The problem is if we have 1,000 folders we need to protect, we need to copy/paste this same code for ...
3 votes
0 answers
132 views

405 for POST requests, download triggered for GET requests for specific php file only

Apologies, I know this is a basic question, but I'm learning nginx! I've inherited a Nginx driven site, the problem is that when browsing to a specific php file it initiates a download. The file, ...
3 votes
0 answers
898 views

Nginx + haproxy (or sslh) does not work without trailing slash in URL

Have a setup like the following: haproxy listening on 443 -> nginx listening on 4545 I have also tried this with: sslh listening on 443 -> nginx listening on 4545 This is on ubuntu server For ...
3 votes
0 answers
102 views

Server receiving hit from its own DigitalOcean public IP Address. Why is that and how to resolve this?

I have a MEAN Stack application deployed on a Digital Ocean Droplet and I am using Nginx as proxy server to handle the request and redirect to application's particular port. I wrote a short script in ...
3 votes
0 answers
127 views

Pagespeed not compressing images

Original image bart-had-a-groove.gif size is 753.43 KB. Processed image bart-had-a-groove.gif.pagespeed.ce.gB3ARqAHA8.gif size is still 753.43 KB. Mods used: pagespeed DisableRewriteOnNoTransform ...
3 votes
0 answers
155 views

Nginx doesn't show a directory index unless I have the non-gziped index.html when I can just provide the .html.gz of other files

My site is full of pre-compressed gzip files. In all cases, except for the index.html file, I don't need the non-gzip versions. For example, if I have 1.html.gz, then I don't need to also have 1.html ...
3 votes
0 answers
976 views

Non-www to www redirect not working in Firefox; Works in Chrome with nginx server

I've configured my website to have https with www scheme. I opted to redirect all the traffic from non-www to www, at the time of setting up LetsEncrypt SSL certificate and it works absolutely fine on ...

15 30 50 per page
1
2 3 4 5
14