Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [HTML].htacces
djtomaszq
post
Post #1





Grupa: Zarejestrowani
Postów: 192
Pomógł: 0
Dołączył: 5.07.2015

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


Dlaczego nie działa mi kod przyjaznych linków .htaccess mimo że wpisuje to samo co w tutorialu:

.htacces
  1. RewriteEngine on
  2. RewriteRule glowna index.html
  3. RewriteRule o-mnie kimjestem.html
  4. RewriteRule oferta oferta.html
  5. RewriteRule cv cv.html
  6. RewriteRule kontakt kontakt.html
  7.  


wpisze w pasek: http://localhost/~HTML/oferta

i wyskakuje 404 error
Go to the top of the page
+Quote Post
trueblue
post
Post #2





Grupa: Zarejestrowani
Postów: 6 806
Pomógł: 1828
Dołączył: 11.03.2014

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


Rzeczywiście nazwałeś plik .htacces czy to tylko literówka?
Go to the top of the page
+Quote Post
djtomaszq
post
Post #3





Grupa: Zarejestrowani
Postów: 192
Pomógł: 0
Dołączył: 5.07.2015

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


Literówka... ale dalej nie działa
Go to the top of the page
+Quote Post
trueblue
post
Post #4





Grupa: Zarejestrowani
Postów: 6 806
Pomógł: 1828
Dołączył: 11.03.2014

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


Sprawdź czy na serwerze jest włączony mod_rewrite.
Go to the top of the page
+Quote Post
djtomaszq
post
Post #5





Grupa: Zarejestrowani
Postów: 192
Pomógł: 0
Dołączył: 5.07.2015

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


To? odhaszowane

  1. LoadModule rewrite_module modules/mod_rewrite.so
Go to the top of the page
+Quote Post
trueblue
post
Post #6





Grupa: Zarejestrowani
Postów: 6 806
Pomógł: 1828
Dołączył: 11.03.2014

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


Restartowałeś serwer?
Na pewno ~HTML, a nie ~html?
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: 23.08.2025 - 05:08