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
Nightwalker
post
Post #2





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

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: 24.12.2025 - 07:34