httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manuel ┼×UBREDU <dia...@roedu.net>
Subject Re: [users@httpd] Getting a simple mod_rewrite "Rewrite
Date Mon, 25 Jun 2007 08:56:45 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Eraticus Majoricus wrote:
> Thank you for looking at this. I have added RewriteLog directive, so the
> Rewrite section now looks like this.
> 
> <Directory />
>     Options FollowSymLinks
>     AllowOverride None
>     Order deny,allow
>     Deny from all
> </Directory>
> 
> #LoadModule rewrite_module modules/mod_rewrite.so
> #AddModule mod_rewrite.c
> Options SymlinksIfOwnerMatch
> RewriteEngine On
> RewriteLog "/usr/local/apache2/logs/rewrite.log"
> RewriteLogLevel 10
> RewriteRule ^/$ /index.html.fr [L]
> 
> When the apache httpd server is restarted, the file "rewrite.log" is
> created, but no contents are created after testing with the url
> "http://127.0.0.1" from a local browser AND the browser is not display
> the contents of /index.html.fr, but rather index.html...

 http://127.0.0.1 does not match the rewrite rule. To match you should
add a /  :)
 The url should look like this: http://127.0.0.1/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGf4NNjGXbUSvc3AsRAkkPAJsF70wvU8UfocxhNoDOUbCkAHwS/gCghDI8
Tg9yXmrOsafV+Fw4S5ZCshI=
=kuYw
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message