Hi all, way back I saw a reference on how to make it look like Zope objects end in '.html'. This can be important for getting into search engines. I've got Apache proxying back to Zope, so I thought that mod_rewrite would be my friend, however Zope still generates URLs w/o the .html. Any help would be great. Thanks. Chris
On Mon, 12 Mar 2001, Chris Cioffi wrote:
Hi all,
way back I saw a reference on how to make it look like Zope objects end in '.html'. This can be important for getting into search engines. I've got Apache proxying back to Zope, so I thought that mod_rewrite would be my friend, however Zope still generates URLs w/o the .html.
Interesting. Are there search engines which only list pages that are ".html?" I'd think that w/so many other things out there (.pl, .htm, .cfm, etc.), that it would easier for the search engines to just remove obvious image types (ie .gif, .jpg, etc.) I would think that search engines would keep anything that returned 'Content-type: text/html', and that was an obvious query (ie www.foo.tld/search?name=pup) In any event, you can easily *name* your zope objects as 'foo.html', but it gets a little tricky when you want to start mixing python expressions in. (the dot appears to suggest a method 'html' w/in object foo). -- Joel Burton <jburton@scw.org> Director of Information Systems, Support Center of Washington
Hi Chris, its for sure not important for search engines, since they catalogue folders as well. If you use / after each object in URL references, there is for sure no problem. If you want extensions for logging and really have to use single files instead of all folders, you can re-resolve extensions from logfile entrys via access to zope and asking for the mime-type. Regards Tino Chris Cioffi wrote:
Hi all,
way back I saw a reference on how to make it look like Zope objects end in '.html'. This can be important for getting into search engines. I've got Apache proxying back to Zope, so I thought that mod_rewrite would be my friend, however Zope still generates URLs w/o the .html.
Any help would be great. Thanks.
Chris
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
I simply solved the problem by placing a dtml method called "index.html" in root, and with "<dtml-var index_html>" in it. With the magic of acquisition, I have now an index.html file everywhere. Philippe ----- Original Message ----- From: "Chris Cioffi" <zope@stopthesanity.org> To: <zope@zope.org> Sent: Monday, March 12, 2001 6:10 PM Subject: [Zope] .html extensions
Hi all,
way back I saw a reference on how to make it look like Zope objects end in '.html'. This can be important for getting into search engines. I've got Apache proxying back to Zope, so I thought that mod_rewrite would be my friend, however Zope still generates URLs w/o the .html.
Any help would be great. Thanks.
Chris
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Hi Philippe, the only reason for .html endings would be for editors to guess the filetype from it. To link to /index.html is kind of silly even for "regular" web-servers (like apache). One goal of zope was to get "nice" URLs ;) Regards Tino Philippe J wrote:
I simply solved the problem by placing a dtml method called "index.html" in root, and with "<dtml-var index_html>" in it. With the magic of acquisition, I have now an index.html file everywhere.
Philippe
----- Original Message ----- From: "Chris Cioffi" <zope@stopthesanity.org> To: <zope@zope.org> Sent: Monday, March 12, 2001 6:10 PM Subject: [Zope] .html extensions
Hi all,
way back I saw a reference on how to make it look like Zope objects end in '.html'. This can be important for getting into search engines. I've got Apache proxying back to Zope, so I thought that mod_rewrite would be my friend, however Zope still generates URLs w/o the .html.
Any help would be great. Thanks.
Chris
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Chris Cioffi -
Joel Burton -
Philippe J -
Tino Wildenhain