Re: mod_rewrite no funciona a /etc/apache2/conf.d/
jo ho tinc funcionant amb aquesta regla dints d'un <Directory /tal/i/qual>:
RewriteEngine on
Options +FollowSymLinks
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
a veure si t'ajuda..
el Monday 07 May 2007 18:46, Jordi Funollet va escriure:
> L'Apache (2.0) m'enreda. Estic redirigint tota una URL cap a HTTPS. Ho fa
> si li poso dins del <VirtualHost *:80>
>
> RewriteEngine on
> RewriteCond %{HTTPS} !^on [nocase]
> RewriteRule ^(/patatim.*)$ https://%{HTTP_HOST}$1 [R,L]
>
> Fins i tot si faig servir un 'include'. En canvi, falla quan ho poso dins
> del '/etc/conf.d/patatim.conf': aplica totes les directives del fitxer,
> excepte les del mod_rewrite.
>
> El help de l'apache diu que aquestes directives poden aparèixer a: "server
> config, virtual host, directory, .htaccess". En el meu cas és la
> primera, "server config".
>
> Se us acudeix perquè?
Reply to: