Re: Getting a simple mod_rewrite "Rewrite

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux