christophe petit
2011-04-24 10:18:20 UTC
Hello,
i have setup zope3 framewrok behind apache and i'd like to remove index.html
from url in root directory and each subfolder.
Here are my Rewriterules :
#1: for redirect 80 port on 9673 Zope port :
RewriteRule ^/(.*)
http://localhost:9673/++vh++http:%{SERVER_NAME}:80/++/$1[P,L]
#2: for removing index.html from url :
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
RewriteRule ^index\.html$ http://%{HTTP_HOST}/ [R=301]
But the #2 doesn't work, still index.html in browser url, even with
reversing order ( #2 before #1).
So, how can i do that ?
Thanks.
i have setup zope3 framewrok behind apache and i'd like to remove index.html
from url in root directory and each subfolder.
Here are my Rewriterules :
#1: for redirect 80 port on 9673 Zope port :
RewriteRule ^/(.*)
http://localhost:9673/++vh++http:%{SERVER_NAME}:80/++/$1[P,L]
#2: for removing index.html from url :
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
RewriteRule ^index\.html$ http://%{HTTP_HOST}/ [R=301]
But the #2 doesn't work, still index.html in browser url, even with
reversing order ( #2 before #1).
So, how can i do that ?
Thanks.