Pagina 1 din 1

De pe domeniu, direct in portal

Scris: 25-Iun-2011, 18:56:27
de Kosler
Am instalat un portal, dar am o mica problema.
Atunci cand intru pe www.domeniulmeu.ro, ma baga pe forum. Eu vreau ca atunci cand intru pe www.domeniulmeu.ro sa ma bage pe portal.
Cum pot sa fac asta ?

Re: De pe domeniu, direct in portal

Scris: 25-Iun-2011, 19:24:00
de clubptc
Intra in .htaccess si seteaza acest cod:

Cod: Selectaţi tot

DirectoryIndex portal.php
Daca portalul nu este portal.php, modifica denumirea in codul de mai sus.
Sa verifici daca in .htaccess exista deja codul DirectoryIndex si ce setare are. Daca este index.php, pui pagina catre portal

Re: De pe domeniu, direct in portal

Scris: 26-Iun-2011, 00:20:33
de Kosler
clubptc scrie:Intra in .htaccess si seteaza acest cod:

Cod: Selectaţi tot

DirectoryIndex portal.php
Daca portalul nu este portal.php, modifica denumirea in codul de mai sus.
Sa verifici daca in .htaccess exista deja codul DirectoryIndex si ce setare are. Daca este index.php, pui pagina catre portal
Cum adica sa setez acel cod ? (sa il pun in .htaccess) ?
Portalul este portal.php !
Uite cum arata la mine .htaccess, fara nici o modificare

Cod: Selectaţi tot

#
# 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">
DirectoryIndex portal.php index.php index.html index.htm
Order Allow,Deny
Deny from All
</Files>
Deci unde, cum si ce modific :D ?

Re: De pe domeniu, direct in portal

Scris: 26-Iun-2011, 01:39:03
de Dragosvr92
Cudul de mai sus este din directorul /forum/
Trebuie pus in root.

M am uitat in arhiva unei conversatii anterioare pe care am avut o, din YM, Si ti am gasit domeniul.
In root nu ai nici un portal.php Vad ca ai doua instalari phpbb. Una in root, si una intr un folder /testphpbb3/
Unde ai portal.php
Sunt Confuz.

Re: De pe domeniu, direct in portal

Scris: 26-Iun-2011, 13:20:58
de Kosler
TheKiller scrie:Cudul de mai sus este din directorul /forum/
Trebuie pus in root.

M am uitat in arhiva unei conversatii anterioare pe care am avut o, din YM, Si ti am gasit domeniul.
In root nu ai nici un portal.php Vad ca ai doua instalari phpbb. Una in root, si una intr un folder /testphpbb3/
Unde ai portal.php
Sunt Confuz.
Da, am 2 instalari de phpBB3.
Una este chiar pe www.domeniulmeu.ro, iar cealalta (unde am si portal-ul) este pe www.domeniulmeu.ro/testphpbb3.
Portalul il am instalat pe www.domeniulmeu.ro/testphpbb3

Re: De pe domeniu, direct in portal

Scris: 26-Iun-2011, 18:45:37
de Dragosvr92
Atunci Directory Index este indeajuns..
Codul de mai sus merge, doar ca lai pus unde nu trebuie.

incearca asta:

Cod: Selectaţi tot

    #
    # 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 index.php index.html index.htm
Dar esti sigur ca ai nevoie de index.html index.htm specificate?

Re: De pe domeniu, direct in portal

Scris: 26-Iun-2011, 22:48:42
de Kosler
Am gasit rezolvarea...
Uite asa trebuie pus in .htaccess

Cod: Selectaţi tot

#
# 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

Re: De pe domeniu, direct in portal

Scris: 27-Iun-2011, 07:55:55
de Dragosvr92
huhu?
Si Eu ce am zis ?

Re: De pe domeniu, direct in portal

Scris: 27-Iun-2011, 13:49:42
de Kosler
TheKiller scrie:huhu?
Si Eu ce am zis ?
Am pus asa, ca sa vada si altii, care sunt interesati.