Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> problem z modrewrite na mini otwarty.pl, czy to wina złej instalacji/ uprawnien/ serwera?
cyngiel
post
Post #1





Grupa: Zarejestrowani
Postów: 101
Pomógł: 1
Dołączył: 28.12.2003
Skąd: Gdańsk

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


Witam, założyłem sobie katalog taki oto tylkodobre.webatu.com

jak widać strona główna działa, podstrony korzystające z modrewrite nie. Gdzie może leżeć tego przyczyna?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
netvalue
post
Post #2





Grupa: Zarejestrowani
Postów: 199
Pomógł: 2
Dołączył: 9.06.2008

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


nikt tu szklanej kuli nie ma. pokaż .htaccess
Go to the top of the page
+Quote Post
cyngiel
post
Post #3





Grupa: Zarejestrowani
Postów: 101
Pomógł: 1
Dołączył: 28.12.2003
Skąd: Gdańsk

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


sory, że nie pokazałem, ale myślałem, że ktośmiał już z nim do czynienia (IMG:style_emoticons/default/winksmiley.jpg)
wydaje mi się że to raczej po stronie serwera problem, miałęm już do czynienia z modrewrite na innym serwie

  1. RewriteEngine On
  2. RewriteRule ^kat-([0-9]+)\.html$ index.php?a=kat&id=$1 [L]
  3. RewriteRule ^pod-([0-9]+)(-([0-9]+))*\.html$ index.php?a=pod&id=$1&min=$3 [L]
  4. RewriteRule ^szcz-([0-9]+)\.html$ index.php?a=szcz&id=$1 [L]
  5. RewriteRule ^inf\.html$ index.php?a=inf [L]
  6. RewriteRule ^wpis\.html$ index.php?a=wpis [L]
  7. RewriteRule ^google([[:alnum:]]+)\.html$ index.php [L]
  8. RewriteRule ^search-(.+)-([0-9]+).html$ index.php?a=search&szukaj=$1&min=$2 [L]
  9. RewriteRule ^rss\.xml$ index.php?a=rss [L]
  10. RewriteRule ^mapa\.html$ index.php?a=mapa [L]
  11.  
  12.  


Ten post edytował cyngiel 6.09.2009, 21:49:32
Go to the top of the page
+Quote Post
Szymon80
post
Post #4





Grupa: Zarejestrowani
Postów: 82
Pomógł: 1
Dołączył: 6.06.2009

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


Może nie masz właczony ModRewrite na serwerze ?

Spróbuj wkleić poniższe regóły do htacces

Kod
RewriteRule ^kat-([0-9]+)\.html$ index.php?a=kat&id=$1 [L]
RewriteRule ^pod-([0-9]+)(-([0-9]+))*\.html$ index.php?a=pod&id=$1&min=$3 [L]
RewriteRule ^szcz-([0-9]+)\.html$ index.php?a=szcz&id=$1 [L]
RewriteRule ^search-(.+)-([0-9]+).html$ index.php?a=search&szukaj=$1&min=$2 [L]
RewriteRule ^regulamin\.html$ index.php?a=inf [L]
RewriteRule ^google([[:alnum:]]+)\.html$ index.php [L]
RewriteRule ^tag-([-_!~,;*'()$a-zA-Z0-9]+)-([0-9]+)\.html$ index.php?a=search&szukaj=$1&min=$2 [L]
RewriteRule ^wpis\.html$ index.php?a=wpis [L]
RewriteRule ^rss\.xml$ index.php?a=rss [L]
RewriteRule ^mapa_strony\.html$ index.php?a=mapa [L]
# End - Rewrite rules to block out some common exploits
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: 25.08.2025 - 05:18