PDA

Zobacz pełną wersję : Problem z index.php



pawlus
07-05-2009, 12:50
Zainstalowalem jommle 1.5.10
i jak wpisuje adres strony www.mojastrona.pl (http://www.mojastrona.pl) to mi nie laduje strony i wyskakuje Forbidden You don't have permission to access / on this server.
A jak wpisze adres strony z www.mojastrona.pl/index.php (http://www.mojastrona.pl/index.php) to mi ja laduje i wszystko jest ok menu tez dziala .

Co zrobic bo juz sam nie wiem zeby sie otwierala strona bez tego index.php

Dzieki za pomoc

idek
07-05-2009, 18:06
być może w menu masz ustawiona jakąś pozycje na domyślną (lub nie masz żadnej, ale tak sie raczej nie da..) która jest nieopublikowana...? (o ile tak sie da:P)

trzepiz
07-05-2009, 18:42
wygląda to tak jakby nie było w DirectoryIndex ustawione index.php

może utwórz plik :


.htaccess i wpisz w nim :


DirectoryIndex index.php index.htm index.html


edit: zapomniałem dodać ze ten plik ma być w głownym katalogu z joomla.

pawlus
08-05-2009, 09:09
Witam moj plik htaccess wyglada tak :
to w ktorym miejscy mam wstawic to Directoryindex i co jeszcze pozmieniac aby strona sie otwierala bez index.php
Dzieki za podpowiedzi

##
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##


################################################## ###
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
################################################## ###

## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

#
# mod_rewrite in use

RewriteEngine On

########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a ********** tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)

# RewriteBase /


########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section

trzepiz
08-05-2009, 09:21
a czy ty może włączyłeś u siebie w konfiguracji :


- Proste adresy ?
- korzystaj z mod_rewrite ?
- adresy z przyrostkiem ?

jeśli masz włączone proste adresy zapoznaj się z tym:
http://wiki.joomla.pl/Proste_adresy_w_Joomla_1.5
http://wiki.joomla.pl/Jak_zmieni%C4%87_nazw%C4%99_pliku_htaccess.txt_na_ .htaccess%3F


zwróć uwagę na ustawienie u siebie :

# RewriteBase /

i podaj może gdzie instalujesz tą Joomla! .. na jakim hostingu

pawlus
08-05-2009, 11:18
jesli próbuje zmienic to w konfiguracji to mi wyskakuje ten komunikat :Błąd: nie można zapisać pliku konfiguracyjnego i pozostaje tak jak bylo czyli
-Proste adresy ?
- korzystaj z mod_rewrite ?
- adresy z przyrostkiem ?
wszystko jest na nie
jak wpisalem sciesszke w RewriteBase /
to to tez nic nie pomoglo
a joomle instaluje na serwerz u mojego prywatnego dostawcy internetu i poinformowal mnie ze na tym serwerze juz dziala kilka stron zrobionych na joomli
a co
do Directoryindex to gdzie to wstawic
dzieki

trzepiz
08-05-2009, 11:24
jeśli na tym serwerze działają już strony na joomla ( lub inne oparte na php ) to nie widzę powodu wstawiania Directoryindex

brak mi pomysłów -
może zapytaj w takim razie dostawcę dlaczego nie czyta ci index.php ...

mkarach
14-05-2009, 09:53
To jest chyba jakiś błąd joomli Ja mam to samo. Hosting na home.pl
Musze z ręki wpisać index.ph i sie strona wyswietla.

Moze błedem moim było usuniecie artykułu strony główne.

trzepiz
14-05-2009, 13:34
nie musisz ..

w configuration.php dodaj w lini :


var $live_site = ' ';

wpisz ścieżkę do swojej strony w postaci :

http://adres.strony.pl/katalog

lub

/katalog

czyli jeśli instalujesz joomla np w katalogu pub to powinno to wyglądać następująco :



var $live_site = 'http://adres.strony.pl/pub';
lub

var $live_site = '/pub';

właśnie sprawdziłem na home.pl - i działa ..

mkarach
14-05-2009, 14:22
nie musisz ..

w configuration.php dodaj w lini :



wpisz ścieżkę do swojej strony w postaci :

http://adres.strony.pl/katalog

lub

/katalog

czyli jeśli instalujesz joomla np w katalogu pub to powinno to wyglądać następująco :



lub


właśnie sprawdziłem na home.pl - i działa ..

dziekuje pomogło, a tyle sie naszukałem a to takie proste.