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
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]
Go to the top of the page
+Quote Post
skowron-line
post
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 (IMG:style_emoticons/default/questionmark.gif)
Go to the top of the page
+Quote Post
CapaciousCore
post
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 (IMG:style_emoticons/default/smile.gif) Jest taka opcja w ogole?

Tak, wydaje mi sie, ze sie zapetla (IMG:style_emoticons/default/tongue.gif)

Ten post edytował CapaciousCore 16.12.2010, 19:38:16
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: 26.09.2025 - 15:04