Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: problem z modrewrite
Forum PHP.pl > Forum > PHP
trollownia86
Witam mam problem z modrewrite.

Mam stronke www.strona.pl i gdy wchodzę na podstrony generują się podstrony http://stronka.pl/1.html/1131.html/1130.html/1128.html/

mój plik .htaccess to:

Cytat
RewriteEngine On

RewriteRule ([a-zA-Z0-9\_]+)\.html index.php?id=$1 [L]

RewriteRule ^index.html$ index.php


chciałbym by strona wyświetlała się www.stronka.pl/2222.html
neverever
może tak?
  1. RewriteEngine On
  2.  
  3. RewriteRule ^index.html$ index.php [L]
  4. RewriteRule ^([a-zA-Z0-9\_]+)\.html$ index.php?id=$1 [L]
trollownia86
po wklepaniu tego kodu pojawia mi się błąd

Cytat
Not Found

The requested URL /4.html/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
neverever
Cytat(trollownia86 @ 12.02.2010, 18:20:18 ) *
po wklepaniu tego kodu pojawia mi się błąd

Dla pewności sprawdziłem u siebie i działa.

Więc albo masz skopany htaccess kodowaniem, albo np coś kombinujesz z podkatalogami w adresie url
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.