Display 404 error document for invalid urls from apache without hitting rails application -
is possible show 404.html error document invalid urls using rewriterule apache before hits rails application.
we have routes /website/stats_for_season/1031475/23 in our application. reason google bot accessing urls /website/stats_for_season/1031475 without last part.
i have added below rule apache .conf file, without success.
rewriterule ^website/stats_for_season/([0-9]+)/$ '' [r=404] [l]
Comments
Post a Comment