Menu
  • HOME
  • TAGS

How do i set a 410 status for any page with a .html file extension?

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....

Set 410 - STATUS GONE for spesific url

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....

Alternative for https://gdata.youtube.com/feeds/api/videos/?v=2

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....

rails 4 api rspec test http status code 410

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...