Daca doriti ca atunci cand cineva acceseaza [Please login or register to view this link] sa intre direct pe portal, trebuie sa introduceti in .htaccess, urmatorul cod:
Code: Select all
DirectoryIndex portal.php
In .htaccess ar trebuii sa aveti asa:
Code: Select all
#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#<IfModule mod_rewrite.c>
#RewriteEngine on
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#</IfModule>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
DirectoryIndex portal.php
Părere:Sper ca v-a fost de folos.