Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [mod_rewrite] Dziwne o_0
Forum PHP.pl > Forum > PHP
Snap
Witam mam stronkę umieszczoną w folderze /strona
i do tego folderu podpięta jest domena www.strona.pl
stronka chodzi jak ta lala ale cos jest nie tak z mod_rewrite wygląda on tak:

  1. <?php
  2. Options FollowSymLinks
  3. RewriteEngine On
  4. RewriteRule ^index.html$ index.php [L]
  5. RewriteRule ^([^/]*).html$ index.php?a=$1 [L]
  6. RewriteRule ^index/([^/]*).html$ index.php?cat=$1 [L]
  7. RewriteRule ^([^/]*)/([^/]*).html$ index.php?a=$1&u=$2 [L]
  8. RewriteRule ^([^/]*)/1/([^/]*).html$ index.php?a=$1&id=$2 [L]
  9. RewriteRule ^([^/]*)/([^/]*)/([^/]*).html$ index.php?a=$1&u=$2&all_reviews=$3 [L]
  10. ?>


wchodząc na adres www.stronka.pl/index.php strona chodzi a na www.strona.pl/index.html juz nie ;/
sf
RewriteBase ?
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.