Need a 410 Gone for some old url´s
February 26, 2015 08:36AM
I have some old category what I don´t need on the the new project.
So I want to send a 410 Gone to all acceess an files in the following categories

www.my-domain.de/hundevideos/
www.my-domain.de/hundevideo/

How can I do that?
Re: Need a 410 Gone for some old url´s
February 26, 2015 09:32AM
location /hundevideos/ { return 410; }

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Need a 410 Gone for some old url´s
February 26, 2015 09:40AM
Thanks. So /hundevideos/ is not a real directory on the server. The url is
www.my-domain.de/hundevideos/blabla.html
or
www.my-domain.de/hundevideos/dingdong/onetwo.html

Can I use the command anyway?
Re: Need a 410 Gone for some old url´s
February 26, 2015 09:59AM
Its a location block, so whatever the folder name is, thats what you use.
It should work for any request in that folder and subfolders.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Need a 410 Gone for some old url´s
February 27, 2015 05:49AM
thank you :)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 246
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready