Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> mod_rewrite - nazwa.pl
huntercs
post
Post #1





Grupa: Zarejestrowani
Postów: 94
Pomógł: 0
Dołączył: 6.02.2005

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


Podana niżej regułka nie działa mi na serwerze nazwa.pl, na localhoscie i innym działa
chcąc korzystać z $_SERVER['PATH_INFO'] chcę usunąc fragment index.php z urla
(somehost.pl/index.php/controller/action/params > na > somehost.pl/controller/action/params)
  1. <?php
  2. RewriteEngine on
  3. RewriteCond $1 !^(index.php|images|robots.txt)
  4. RewriteRule ^(.*)/index.php/$1 [L]
  5. ?>

miał już ktoś taki problem z nazwa.pl?


--------------------


Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 6)
slash12345
post
Post #2





Grupa: Zarejestrowani
Postów: 70
Pomógł: 0
Dołączył: 21.04.2006

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


Oni nie korzystają z Apache, więc to oczywiste że implementacja mod_rewrite może mieć błędy.


--------------------
Kod
thewanderer@debian:~$ sudo apt-get dist-upgrade
Konieczne pobranie 666KB pakietów. Czy chcesz kontynuować? [T/n] nieeeeeeee
Go to the top of the page
+Quote Post
elnino.pl
post
Post #3





Grupa: Zarejestrowani
Postów: 125
Pomógł: 0
Dołączył: 17.06.2006

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


Cytat(slash12345 @ 13.07.2006, 23:24 ) *
Oni nie korzystają z Apache, więc to oczywiste że implementacja mod_rewrite może mieć błędy.

Bzdura, to home.pl nie używa Apache


--------------------
Go to the top of the page
+Quote Post
grzegorz_w
post
Post #4





Grupa: Zarejestrowani
Postów: 13
Pomógł: 0
Dołączył: 19.07.2006

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


Cytat(elnino.pl @ 14.07.2006, 00:11 ) *
Bzdura, to home.pl nie używa Apache


A co ma nazwa do home? Fakt, ze home korzysta z IdeaWebServer nie znaczy, ze nazwa tez z niego korzysta.
Go to the top of the page
+Quote Post
elnino.pl
post
Post #5





Grupa: Zarejestrowani
Postów: 125
Pomógł: 0
Dołączył: 17.06.2006

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


Cytat(grzegorz_w @ 19.07.2006, 16:06 ) *
A co ma nazwa do home? Fakt, ze home korzysta z IdeaWebServer nie znaczy, ze nazwa tez z niego korzysta.

Nazwa.pl korzysta tylko i wyłącznie z Apache.


--------------------
Go to the top of the page
+Quote Post
mario
post
Post #6





Grupa: Zarejestrowani
Postów: 186
Pomógł: 0
Dołączył: 23.09.2003
Skąd: Siemianowice Śląskie

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


nazwa.pl korzysta a jak nie wierszysz to sobie sprawdz funkcja phpinfo


--------------------
W życiu piękne są tyko chwile....
Życie choć piękne tak krótkie jest....
Wystarczy chwila by zgasić je....
Go to the top of the page
+Quote Post
Nightwalker
post
Post #7





Grupa: Zarejestrowani
Postów: 180
Pomógł: 0
Dołączył: 5.02.2006
Skąd: Bytom

Ostrzeżenie: (10%)
X----


Kod
root@squid:~# ab http://www.nazwa.pl/
This is ApacheBench, Version 1.3d <$Revision: 1.73 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/

Benchmarking www.nazwa.pl (be patient).....done
Server Software:        Apache
Server Hostname:        www.nazwa.pl
Server Port:            80

Document Path:          /
Document Length:        196 bytes

Concurrency Level:      1
Time taken for tests:   0.358 seconds
Complete requests:      1
Failed requests:        0
Broken pipe errors:     0
Non-2xx responses:      1
Total transferred:      545 bytes
HTML transferred:       196 bytes
Requests per second:    2.79 [#/sec] (mean)
Time per request:       358.00 [ms] (mean)
Time per request:       358.00 [ms] (mean, across all concurrent requests)
Transfer rate:          1.52 [Kbytes/sec] received


A tutaj pierwsza lepsza strona hostowana na nazwa.pl

Kod
root@squid:~# ab http://ibplanet.pl/
This is ApacheBench, Version 1.3d <$Revision: 1.73 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/

Benchmarking ibplanet.pl (be patient).....done
Server Software:        Apache/2
Server Hostname:        ibplanet.pl
Server Port:            80

Document Path:          /
Document Length:        76779 bytes

Concurrency Level:      1
Time taken for tests:   1.175 seconds
Complete requests:      1
Failed requests:        0
Broken pipe errors:     0
Total transferred:      77094 bytes
HTML transferred:       76779 bytes
Requests per second:    0.85 [#/sec] (mean)
Time per request:       1175.00 [ms] (mean)
Time per request:       1175.00 [ms] (mean, across all concurrent requests)
Transfer rate:          65.61 [Kbytes/sec] received


Co do nie działania, to nei znam się ma wyrażeniach regularnych, jeżeli uważasz że kod jest poprawny, napisz do adminów netart'u...

Ten post edytował Nightwalker 21.07.2006, 13:35:34


--------------------
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 Aktualny czas: 21.08.2025 - 18:44