Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS][MySQL][PHP]Błąd 404, Jaka przyczyna?
markaz
post
Post #1





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 20.05.2010

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


Witam wszystkich.
Mam problem tego typu że w sklepie internetowym którym mam administrować wyskakuje Błąd 404 The requested URL /sklep/produkty,poduszki-ogrodowe.html was not found on this server. Jak mogę usunąć tą usterkę?

Bardzo proszę o pomoc. Ja aż tak nie znam się na programowaniu dopiero się uczę PHP i wdrażam w to wszystko.

Pozdrawiam.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
markaz
post
Post #2





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 20.05.2010

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


znalazłem pliczek htacces z backapu wkleiłem i śmiga stronka. Ale mam jeszcze jedno pytanie. Chciałbym utworzyć teraz subdomenę z hitgarden.com/sklep na sklep.hitgarden.com. Co muszę zmienić w pliku htacces żeby się nie posypało? dziekuje za zainteresowanie moim tematem.
Z pliku htacces
RewriteEngine on

RewriteRule ^.+(/file/.+)$ http://www.hitgarden.com/sklep/$1 [L]
RewriteRule ^.+(flash/.+)$ $1 [L]
RewriteRule ^.+(xml/.+)$ $1 [L]
RewriteRule ^.+(js/.+)$ $1 [L][PHP][/PHP]
RewriteRule ^.+(img/.+)$ $1 [L]
RewriteRule ^.+(css/.+)$ $1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z-_0-9]+)/([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+).html/?$ index.php?lang=$1&site=$2&var1=$3&var2=$4&var3=$5&var4=$6&var5=$7 [L]
RewriteRule ^([a-zA-Z-_0-9]+)/([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+).html/?$ index.php?lang=$1&site=$2&var1=$3&var2=$4&var3=$5&var4=$6 [L]
RewriteRule ^([a-zA-Z-_0-9]+)/([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+).html/?$ index.php?lang=$1&site=$2&var1=$3&var2=$4&var3=$5 [L]
RewriteRule ^([a-zA-Z-_0-9]+)/([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+).html/?$ index.php?lang=$1&site=$2&var1=$3&var2=$4 [L]
RewriteRule ^([a-zA-Z-_0-9]+)/([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+).html/?$ index.php?lang=$1&site=$2&var1=$3 [L]
RewriteRule ^([a-zA-Z-_0-9]+)/([a-zA-Z-_0-9]+).html/?$ index.php?lang=$1&site=$2 [L]
RewriteRule ^([a-zA-Z-_0-9]+)/?$ index.php?lang=$1 [L]

RewriteRule ^([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+).html/?$ index.php?site=$1&var1=$2&var2=$3&var3=$4&var4=$5 [L]
RewriteRule ^([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+).html/?$ index.php?site=$1&var1=$2&var2=$3&var3=$4 [L]
RewriteRule ^([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+).html/?$ index.php?site=$1&var1=$2&var2=$3 [L]
RewriteRule ^([a-zA-Z-_0-9]+),([a-zA-Z-_0-9]+).html/?$ index.php?site=$1&var1=$2 [L]
RewriteRule ^([a-zA-Z-_0-9]+).html/?$ index.php?site=$1 [L]
Go to the top of the page
+Quote Post

Posty w temacie


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: 10.10.2025 - 10:42