Friday, April 11, 2008

‘PathInfo’ URLs in rev140

just to let you know, less-ugly-urls[¹] (no mod_rewrite) are now available in SVN rev140 by setting the PRETTYURLS_PATHINFO constant in plugin.prettyurls.php to true; then your urls will look like

http://example.com/flatpress/index.php/2008/04/11/my-site/

files that changed are two:

you should be able to test them with alpha3 (I can’t assure it will work older alphas, and they probably won’t work with even older versions)

[¹] well, really I don’t think that standard URLs are ugly anymore, with the new “?x=…” syntax :)

  1. Embrance Avatar for Embrance

    Monday, April 14, 2008 - 03:01:28

    So now we have 2 options for this?Woooohooo!

  2. Tinh Avatar for Tinh

    Monday, April 14, 2008 - 12:46:12

    I am upgrading to alph3 and modify two files that you suggest and hope it will work soon. Thanks

  3. Joako9205 Avatar for Joako9205

    Tuesday, April 15, 2008 - 17:47:29

    E S P E C T A C U L A R

    =)

    Flatpress rockS!

  4. hick Avatar for hick

    Wednesday, May 21, 2008 - 18:00:45

    Just wanted to supply some info for people having trouble getting pretty url’s without mod_rewrite to work. In newer versions of the Apache server there’s an AcceptPathInfo directive that by default does not allow this, but you can set the directive to ON to get this to work. In iis there’s some settings similar to AcceptPathInfo that will make it work too.

Add comment

Fill out the form below to add your own comments

User data





Add your comment


Donate!

Making a small donation to the FlatPress Project will make you feel happier (we swear!), will help the project, and will help NoWhereMan buying a lemon! :D

Admin area

Badges