[Tutorial]SChimbare Prima pagina

Locked
User avatar
# King
Membru
Membru
Posts: 1069
Joined: 8 years ago
Location: Braşov
Has thanked: 0
Been thanked: 0
Zodiac:
Age: 23
Contact:
Status: Offline

8 years ago

Daca ati instalat un portal phpBB3, iar forum-ul se afla intr-un folder, gen [Please login or register to view this link], atunci ati vazut ca daca accesati acel domeniu, o sa va duca direct pe forum si nu pe portal.
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.
Locked

Return to “Tutoriale”