![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 65 Pomógł: 0 Dołączył: 9.09.2006 Ostrzeżenie: (0%) ![]() ![]() |
Witam. mam takie pytanko. Czy można mod rewrite w pliku htaccess wykorzystać do tego że: jak ktoś wejdzie na http://mojastr.pl/katalog/plik.jpg to żeby mu się wyświetlił http://123456.pl/katalog/plik.JPG . Wiem że jak jest an tym samym serwerze to że się tak da.. a jak na dwóch? bo mam taki kodzik i on nie działa:
Kod RewriteEngine on RewriteRule ^upload/(.*).JPG http://123456.pl/katalog/$1.JPG wywala Kod Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, @in5.pl and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Ten post edytował kidler 8.09.2008, 19:04:46 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 439 Pomógł: 21 Dołączył: 28.06.2007 Skąd: Bielsko-Biała Ostrzeżenie: (0%) ![]() ![]() |
@up, przekieruje a nie przepisze...
#topic, musisz dodać flagę(flagi to na końcu np. [L]) nie wiem jaką ale w manualu apache jest opis wszystkich możliwych flag:) bardzo ładnym prostym językiem dla zwykłego śmiertelnika Kod RewriteEngine on RewriteRule ^upload(.*) http://123456.pl/katalog$1 [P] Przykład prosto z manuala tylko zmienione scieżki Ten post edytował dadexix 8.09.2008, 20:37:13 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 6.10.2025 - 18:32 |