Вы не зашли.
Главная » PHP » mod_rewrite
#1. Koka90 Off (0)
Участник
2010.07.12 08:08
Вот какая фиговина,не работает не фига...
В конфиге апача модуль подключен.
Код:
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>
Вроди все правельно...
Жызнь дала трещину, и стала все больше похожа на ЖОПУ!!!
#2. Gemorroj Off (107)
Administrator
2010.07.12 08:08
добавь еще
Options +FollowSymlinks
RewriteBase /
если не поможет скинь настройку хоста
#3. Koka90 Off (0)
Участник
2010.07.12 09:09
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>
Жызнь дала трещину, и стала все больше похожа на ЖОПУ!!!
#4. Gemorroj Off (107)
Administrator
2010.07.12 09:09
AllowOverride None
замени на
AllowOverride All
#5. Koka90 Off (0)
Участник
2010.07.12 09:09
Gemorroj написал:
AllowOverride None
замени на
AllowOverride All
Спасибо.
+1
Жызнь дала трещину, и стала все больше похожа на ЖОПУ!!!
Страниц: 1
Главная
WEB
PunBB Mod v0.6.2
0.019 s