Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][PHP] Index.php i Index.thml
Vajder
post
Post #1





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 18.11.2014
Skąd: Zasań

Ostrzeżenie: (0%)
-----


Witam, mam pytanie. Jak zrobić, żeby stronę główną wyświetlało Index.php zamiast Index.html?
Próbowałem w .htaccess DirectoryIndex index.php index.html ale strona się sypie:/
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
fate
post
Post #2





Grupa: Zarejestrowani
Postów: 824
Pomógł: 106
Dołączył: 14.03.2012
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


Zmiana rozszerzenia nie pomaga?
Go to the top of the page
+Quote Post
Turson
post
Post #3





Grupa: Zarejestrowani
Postów: 4 291
Pomógł: 829
Dołączył: 14.02.2009
Skąd: łódź

Ostrzeżenie: (0%)
-----


Jak zmieniles nazwe pliku a dalej nie pomaga to wyczysc cache
Go to the top of the page
+Quote Post
lord2105
post
Post #4





Grupa: Zarejestrowani
Postów: 380
Pomógł: 59
Dołączył: 24.04.2010
Skąd: London

Ostrzeżenie: (0%)
-----


jezeli zainstalowałeś php po webserverze i.e. apache2 to go zrestartuj
Go to the top of the page
+Quote Post
miras
post
Post #5





Grupa: Zarejestrowani
Postów: 1 004
Pomógł: 9
Dołączył: 18.01.2011
Skąd: Siedlce

Ostrzeżenie: (30%)
XX---


Chyba chodzi o to, żeby korzystając z pliku index.php w przeglądarce wyświetlać index.html

wtedy w .htaccess dajesz:

  1. RewriteEngine On
  2. RewriteCond %{REQUEST_FILENAME} !-f
  3. RewriteCond %{REQUEST_FILENAME} !-d
  4. RewriteRule ^index.html index.php
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 5.10.2025 - 17:33