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
miras
post
Post #2





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

Posty w temacie


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

 



RSS Aktualny czas: 16.10.2025 - 02:00