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

1 view
Skip to first unread message

christophe petit

unread,
Apr 24, 2011, 6:18:20 AM4/24/11
to blue...@zope.org, zope3-users
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.



Reply all
Reply to author
Forward
0 new messages