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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -