[Zope3-Users] Remove index.html from url with RewriteRule

christophe petit christophe.petit09 at gmail.com
Sun Apr 24 06:18:20 EDT 2011


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20110424/1956723f/attachment.html 


More information about the Zope3-users mailing list