html,.htaccess,http-status-code-410
You can use: RewriteEngine On RewriteRule ^[^/.]+\.html$ - [G,NC,L] [^/.]+ will make sure to match these html files only in site root leaving html files in sub directories untouched....
regex,apache,.htaccess,mod-rewrite,http-status-code-410
You can use: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^path_to_file/(file1|file2|file3)\.html$ - [L,NC,G] </IfModule> Flag G (Gone) is equivalent of R=410....
youtube-api,http-status-code-410
If I'm understanding your question correctly then you should be using https://www.googleapis.com/youtube/v3/videos?id=<video_id>&key=<YOUR_API_KEY>&part=snippet from now on. Google shutdown the old API effective April 20th, 2015. Take a look at the newest v3 API getting started....
ruby-on-rails,api,rspec,http-status-code-410
I wonder if someone has a better idea here..... but, here is how I solved it: First I installed capybara. Then I adjusted the route to be more descriptive: match '*not_found', to: 'error#error_status_410', via: :all Then I adjusted my error controller: class ErrorController < ApplicationController def error_status_410 head status: 410...