Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] mod_rewrite - coś nie tak, mod_rewrite i phpBB2
MK777
post
Post #1





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 2.01.2005

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


Chciałem zastosować mod rewrite dla mojego forum, jest pod adresem http://forum.simsy.net (a bezpośredni adres to http://www.simsy.net/forum ) mój .htaccess wygląda tak:
Kod
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^([^&]+)\-([0-9]{1,}).html$ index.php?subaction=$1&id=$2
RewriteRule ^start_from=([0-9]{1,}).html$ index.php?start_from=$1
RewriteRule ^([^&]+)\.html$ index.php?go=$1
RewriteRule ^profil([0-9]{1,12})-(.*).html$ profile.php?mode=viewprofile&u=$1
RewriteRule [.]*-vf([0-9]*) viewforum.php?%{QUERY_STRING}&f=$1
RewriteRule [.]*-vp([0-9]*) viewtopic.php?%{QUERY_STRING}&p=$1
RewriteRule [.]*-vt([0-9]*) viewtopic.php?%{QUERY_STRING}&t=$1
RewriteRule ^\.htaccess$ - [F]

I jak widać, nie wiem czemu nie działa (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)

--------------
Przeniesione: Gotowe skrypty ---> Serwery WWW > Apache
-- dr_bonzo
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Dex1987
post
Post #2





Grupa: Zarejestrowani
Postów: 246
Pomógł: 0
Dołączył: 28.09.2004

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


nie chodzi mi o pelne sciezki w pliku htaccess tylko w pliku html czy tez php (do obrazkow, styli itp)
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: 7.10.2025 - 15:37