|
| Hi,
I have got the following htaccess rule:
-----------------------------------------
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . sts/index.php [L,NS]
AddDefaultCharset UTF-8
----------------------------------------
My website uses links like this:
http://webaddr/sts/section/page/
The /section/ part is simply a html document named section.html.
Ii is supposed to be called only by http://webaddr/sts/section/* and not
directly.
The php script controls the links and includes specific files if they exist
e.t.c.
I would like to block all possibilities of accessing files directly so for
instance the call like this:
http://webaddr/sts/section.html will redirect to http://webaddr/sts/section/
or to any other specified location like http://webaddr/sts/home/
I would also want to preserve the possibility of calling certain files
(specified in a list) normally - directly.
Can you help me with modifying my rule to allow this?
TiA
B.
|
|