Skip to main content

All Questions

0 votes
1 answer
212 views

How to use Nginx to 301 Redirect 200k+ Urls

I've been trying to figure this out for hours and have to throw in the towel. I'm used to using htaccess. I'm not receiving any error messages when reloading nginx, but none of my sample redirects ...
J.R.'s user avatar
  • 63
0 votes
1 answer
416 views

Docker - NGINX - PHP-FPM - WordPress - The Page Isn’t Redirecting Properly

I had two WordPress websites on a Synology NAS at home running on NGINX with PHP-FPM 7.4 with virtual hosts. I am moving these websites on a Debian VM also at home, and run the services in rootless ...
Serfoo's user avatar
  • 1
1 vote
1 answer
899 views

Nginx 301 redirect with wildcard

Need to create a nginx 301 redirect. From: /blog/some-article To: /blog/article/some-article Current nginx configuration: location /blog/(.*)$ { rewrite ^/blog/(.*)$ ^/blog/article$1 ...
ViktorasssIT's user avatar
0 votes
1 answer
167 views

NGNIX redirect from subdomain to different domain (Forge)

I have a subdomain that I need to redirect to a completely different domain. This subdomain was set up as a CNAME that pointed to Shopify, now it's being removed completely. Lets say the subdomain is ...
shorn's user avatar
  • 1,347
0 votes
1 answer
220 views

How to redirect if from reddit with nginx?

I post images on reddit by hotlinking images from my site. By allowing reddit to hotlink my images it will display the image on their site but I also want it to redirect if a user clicks on the image ...
TravelWhere's user avatar
1 vote
1 answer
589 views

How can I do a 301 redirect towards an URL ending in a slash with Nginx?

I've an nginx web server that proxy pass traffic to different services on my LAN. After a recent update of one of those services the redirect stop working as expected. The service behind the redirect ...
raaowx's user avatar
  • 49
2 votes
1 answer
1k views

Gatsby with nginx - redirect is broken - trailing / (slash)

My gatsby site redirects to trailing slash and then redirects again back to non-trailing slash. nginx config file: server { listen 80; listen [::]:80; server_name example.com www.example....
Robin Wieruch's user avatar
0 votes
0 answers
201 views

Nginx 301 when accessing a proxied domain locally

I have a Nginx running as a reverse proxy for a domain, let's call it "testdomain.com", the proxy itself is working, and I can access this website from almost anywhere I want, except locally....
Macaxeira's user avatar
0 votes
1 answer
9k views

Easiest way to change domain names in NGINX

So I have been researching how to re-direct my old domain to my new domain and stumbled on this stack article here. This solution makes sense to me, but when I open my own I get a little overwhelmed. ...
Ten Digit Grid's user avatar
1 vote
0 answers
64 views

Nginx detecting 301 requests

I have tons of 301 redirects to my server from spam domains to reduce my google rank. How can I detect the 301 request and also is it possible to filter it by whitelist domain list? Because also I ...
mcan's user avatar
  • 23
0 votes
1 answer
163 views

How to redirect users from old domain to new domain, if they have cached the site

My old domain is no longer valid, I have changed the product name. I want to redirect all old users to my new domain. I told my domain-provider to 301 send them to my new domain. My issue is that when ...
AntonAK's user avatar
  • 71
1 vote
1 answer
530 views

Trouble redirecting urls in nginx

I'm trying to set up an Nginx redirect where domain.com/story/urlname would redirect to domain.com/clientstories/urlname. Essentially need to redirect from one sub-path to another. I tried the ...
electrophile's user avatar
1 vote
1 answer
59 views

Skip an argument when doing a 301 redirect in NGINX

First post here. So I'm using this code to redirect specific pages from one domain to another. if ( $request_filename ~ / ) { rewrite ^ https://example.net permanent; } Is there an option to skip ...
Chip Radoslavov's user avatar
0 votes
0 answers
164 views

Nginx redirect old PHP website URL's to new pages

We have a bunch of old backlinks from an old Joomla virtuemart installation, unfortunately any attempts to make a 301 redirect have failed. An example link is https://www.example.com/index.php?option=...
Stephan's user avatar
0 votes
0 answers
1k views

nginx static directory, redirection 301 if no leading slash

I what to expose the content of a directory with nginx server. I got the following /etc/nginx/nginx.conf config: events { worker_connections 1024; } http { server { listen 80; ...
gardun624's user avatar

15 30 50 per page
1
2 3 4 5
7