.htaccess - Mod rewrite to redirect to 404 if filename is followed by other characters -
on website have files index.php,home.php,about.php
and full url
http://example.com/about.php and wired thing
http://example.com/about.php#foobar also goes page . want block after files name , redirect 404.
i copied similar post :
rewriterule ([a-za-z]+).([a-za-z]+) - [l] rewriterule ([a-za-z]+).([a-za-z]+) - [r=404,l] its not working. can me please?
edit: not hashmark related question.
i want redirect 404 url trailing path.
i think looking :
acceptpathinfo off source : http://httpd.apache.org/docs/2.2/mod/core.html#acceptpathinfo
Comments
Post a Comment