Koka90 » 2010.07.12 08:11

Вот какая фиговина,не работает не фига...
В конфиге апача модуль подключен.

Код:

1
LoadModule rewrite_module modules/mod_rewrite.so

При запуске нет не каких ошибок.

Код:

1
2
3
4
5
6
7
8
9
10
11
12
[Mon Jul 12 07:04:02 2010] [notice] Apache/2.2.15 (Win32) PHP/5.3.2 configured -- resuming normal operations
[Mon Jul 12 07:04:02 2010] [notice] Server built: Mar 4 2010 11:27:46
[Mon Jul 12 07:04:02 2010] [notice] Parent: Created child process 5832
[Mon Jul 12 07:04:02 2010] [debug] mpm_winnt.c(487): Parent: Sent the scoreboard to the child
[Mon Jul 12 07:04:03 2010] [notice] Child 5832: Child process is running
[Mon Jul 12 07:04:03 2010] [debug] mpm_winnt.c(408): Child 5832: Retrieved our scoreboard from the parent.
[Mon Jul 12 07:04:03 2010] [info] Parent: Duplicating socket 248 and sending it to child process 5832
[Mon Jul 12 07:04:03 2010] [debug] mpm_winnt.c(605): Parent: Sent 1 listeners to child 5832
[Mon Jul 12 07:04:03 2010] [debug] mpm_winnt.c(564): Child 5832: retrieved 1 listeners from parent
[Mon Jul 12 07:04:03 2010] [notice] Child 5832: Acquired the start mutex.
[Mon Jul 12 07:04:03 2010] [notice] Child 5832: Starting 150 worker threads.
[Mon Jul 12 07:04:03 2010] [notice] Child 5832: Starting thread to listen on port 80.

А вот при запросе
_http://localhost/mod_rewrite_test.php
нет ошибок.
А если зделать запрос
_http://localhost/mod_rewrite.test
то ошибка.

Код:

1
[Mon Jul 12 07:07:20 2010] [error] [client 127.0.0.1] File does not exist: C:/SRV/www/localhost/htdocs/mod_rewrite.test

Вот содержимое .htaccess

Код:

1
2
3
4
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^mod_rewrite.test$ mod_rewrite_test.php
</IfModule>

Вроди все правельно...

Gemorroj » 2010.07.12 08:41

добавь еще
Options +FollowSymlinks
RewriteBase /
если не поможет скинь настройку хоста

Koka90 » 2010.07.12 09:08

Gemorroj написал:

добавь еще
Options +FollowSymlinks
RewriteBase /
если не поможет скинь настройку хоста

Тоже самое.

Код:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<VirtualHost 127.0.0.1:80>
ServerAdmin webmaster@localhost
DocumentRoot "c:/SRV/www/localhost/htdocs"
ServerName localhost
ServerAlias www.localhost
ScriptAlias /cgi-bin/ "c:/SRV/www/localhost/cgi-bin/"
ErrorLog "c:/SRV/www/localhost/logs/httpd-error.log"
CustomLog "c:/SRV/www/localhost/logs/httpd-access.log" common
<Directory "c:/SRV/www/localhost/htdocs">
Options Indexes +FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "c:/SRV/www/localhost/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Gemorroj » 2010.07.12 09:14

AllowOverride None
замени на
AllowOverride All

Koka90 » 2010.07.12 09:36

Gemorroj написал:

AllowOverride None
замени на
AllowOverride All

Спасибо.
+1