Welcome!
Log In
Create A New Profile
Home
>
Nginx Related Forums
>
How to...
> Topic
Advanced
Need a 410 Gone for some old url´s
Posted by
Milos
Forum List
Message List
New Topic
Milos
Need a 410 Gone for some old url´s
February 26, 2015 08:36AM
Registered: 9 years ago
Posts: 6
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?
Reply
Quote
itpp2012
Re: Need a 410 Gone for some old url´s
February 26, 2015 09:32AM
Admin
Registered: 11 years ago
Posts: 1,297
location /hundevideos/ { return 410; }
---
nginx for Windows http://nginx-win.ecsds.eu/
Reply
Quote
Milos
Re: Need a 410 Gone for some old url´s
February 26, 2015 09:40AM
Registered: 9 years ago
Posts: 6
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?
Reply
Quote
itpp2012
Re: Need a 410 Gone for some old url´s
February 26, 2015 09:59AM
Admin
Registered: 11 years ago
Posts: 1,297
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/
Reply
Quote
Milos
Re: Need a 410 Gone for some old url´s
February 27, 2015 05:49AM
Registered: 9 years ago
Posts: 6
thank you :)
Reply
Quote
Newer Topic
Older Topic
Print View
RSS
Sorry, only registered users may post in this forum.
Click here to login
Online Users
Guests: 282
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018