Вот какая фиговина,не работает не фига...
В конфиге апача модуль подключен.
Код:
LoadModule rewrite_module modules/mod_rewrite.so |
При запуске нет не каких ошибок.
Код:
[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
то ошибка.
Код:
[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
Код:
<IfModule mod_rewrite.c> |
RewriteEngine on |
RewriteRule ^mod_rewrite.test$ mod_rewrite_test.php |
</IfModule> |
Вроди все правельно...
Жызнь дала трещину, и стала все больше похожа на ЖОПУ!!!
Gemorroj написал:
добавь еще
Options +FollowSymlinks
RewriteBase /
если не поможет скинь настройку хоста
Тоже самое.
Код:
<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 написал:
AllowOverride None
замени на
AllowOverride All
Спасибо.
+1
Жызнь дала трещину, и стала все больше похожа на ЖОПУ!!!