[pLog-svn] r3385 - inplog/trunk:class/action/adminjs/tinymcejs/uilocale templates/admin

Oscar Renalias oscar at renalias.net
Sat May 13 08:36:08 GMT 2006


On 13 May 2006, at 07:52, lss wrote:

> 2006/5/13, Oscar Renalias <oscar at renalias.net>:
> If that's what you're trying to do... Have you ever tried using
> custom URLs but instead of /blog/{whatever}/{whateverelse} using /
> blog.php/{whatever}/{whateverelse}? I think it's exactly what you're
> trying to achieve here.
>
> hi Oscar:
>
> like what mark sayed "Not all VHS can support .htaccess ... But  
> user still want to have a nice
> looking url when they install lifetype in those VHS ...."
>
> custom url mode must .htaccess support. isn't it true?

  No, that's not correct.

Support for ForceType in .htaccess is only necessary when we want to  
force Apache to handle files *without* a .php extension as PHP  
scripts, otherwise whenever you tried to browse a URL like /blog/ 
yourblog/post/2006/05/12/whatever_post, you'd get the actual contents  
of the "blog" file instead of a dynamic page.

If you have support for .htaccess in your local installation, try the  
following:

1) edit the .htaccess file and remove this:

  <Files blog>
ForceType application/x-httpd-php
</Files>

2) make sure custom URLs are activated and that they use the default  
format

3) try to load any link on the blog, and see how you get the contents  
of the "blog" file instead of the page you were looking for.

Now what you can do to go around the limitation of not having support  
for ForceType in .htaccess is to modify your custom URLs to use "/ 
blog.php/{blogname}/..." instead of "/blog/{blogname}/...". The  
request parser is capable of processing this kind of URLs and the  
result is that you get some prettier URLs without .htaccess.

This has been supported since day one, by the way, and there is some  
very brief documentation about it here:

http://wiki.lifetype.net/index.php/Custom_urls

What we can do is enable this mode by default...

Oscar


More information about the pLog-svn mailing list