restrict access htaccess

0

I have the following folder structure:

Iwouldlikeanyexternaldirectaccessmadetofilesinthehelperandusefuldirectoriestobeforwardedtotheindex.htmlfilethatisintherootofthesite.

Thatis,Iwanttheonlypagethatcanbeaccesseddirectly(byanapponasmartphone)is:/v1/index.php.

Thistypeofaccessdoesnotwantittohappen:

Andneitherofthese:

    
asked by anonymous 21.01.2017 / 19:12

1 answer

0

One of the options is to rewrite everything to v1/index.php

RewriteRule ^ v1/index.php [L]

And the other is to ban access:

RewriteRule ^(helper|uteis)/ - [F,L]
    
04.02.2017 / 13:10