Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [inne] mod_rewrite - *.php na *.html i obsluga *.html
CapaciousCore
post 16.12.2010, 16:57:58
Post #1





Grupa: Zarejestrowani
Postów: 30
Pomógł: 4
Dołączył: 28.09.2009
Skąd: Chełm

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


Kod
RewriteRule ^(.+)\.php$ $1.html [R=301,L] # dlaczego wywala adres w kosmos?
RewriteRule ^(.+)\.html$ $1.php [L]


--------------------
WebKrytyk - zobacz jak marnują się Twoje pieniądze w internecie!
Go to the top of the page
+Quote Post
skowron-line
post 16.12.2010, 17:48:08
Post #2





Grupa: Zarejestrowani
Postów: 4 340
Pomógł: 542
Dołączył: 15.01.2006
Skąd: Olsztyn/Warszawa

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


Cytat(CapaciousCore @ 16.12.2010, 16:57:58 ) *
Kod
RewriteRule ^(.+)\.php$ $1.html [R=301,L] # dlaczego wywala adres w kosmos?
RewriteRule ^(.+)\.html$ $1.php [L]

A nie zapętla Ci się to questionmark.gif


--------------------
I'm so fast that last night I turned off the light switch in my hotel room and was in bed before the room was dark - Muhammad Ali.
Peg jeżeli chcesz uprawiać sex to dzieci muszą wyjść, a jeżeli chcesz żeby był dobry ty też musisz wyjść - Al Bundy.

QueryBuilder, Mootools.net, bbcradio1::MistaJam
http://www.phpbench.com/
Go to the top of the page
+Quote Post
CapaciousCore
post 16.12.2010, 19:33:07
Post #3





Grupa: Zarejestrowani
Postów: 30
Pomógł: 4
Dołączył: 28.09.2009
Skąd: Chełm

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


W pasku adresu wypluwa bezwzgledny adres do pliku.

Ogolnie chcialbym uzyskac taki efekt, ze x.php redirectuje 301 na x.html i x.html po prostu obsluguje smile.gif Jest taka opcja w ogole?

Tak, wydaje mi sie, ze sie zapetla tongue.gif

Ten post edytował CapaciousCore 16.12.2010, 19:38:16


--------------------
WebKrytyk - zobacz jak marnują się Twoje pieniądze w internecie!
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 10:44