Apache and Rewrite Module
Posted
by Yvon Blais
on Stack Overflow
See other posts from Stack Overflow
or by Yvon Blais
Published on 2010-06-13T14:48:07Z
Indexed on
2010/06/13
14:52 UTC
Read the original article
Hit count: 196
rewrite
|apache-config
I created a file .htaccess
in the /var/www directory., The rights are root root --wxrwxrwxr
The content of the file is :
Options +FollowSymlinks RewriteEngine on RewriteLogLevel 3 RewriteLog "/var/log/apache2/rewrite.log"
RewriteRule ^(.*?)$ testphp.php
When I call the page phpinfo.php, I've got: Loaded Modules ... mod_rewrite ... Therefore, the modules is loaded
Afer each modification,I restared the server manually with sudo /etc/init.d/apache2 restart
The error.log gives Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.2 with Suhosin-Patch configured -- resuming normal operations
When I call a page anyone.htm or anyone.php, the rewrite.log does contain nothing and the real page is called. If I understand, the page anyone.php
should be replaced by testphp.php
Did I make siomething wrong ?
Thanks
© Stack Overflow or respective owner