Log in | Register | Lost password

Bottom
mod_rewrite support
  • Posted: 12.02.2004, 18:12
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Jorn,

    Ever busy eh? :-)

    It would be nice to support mod_rewrite out of the box for more flexibility dan doing a
    reg exp (and better performance). This would allow for example google to index the site.

    - Bolke
  • Posted: 13.02.2004, 05:35
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Xanthias's short URLs do work (except for the filter syntax; the colon wasn't a good idea ;-))

    J?rg
  • Posted: 14.02.2004, 00:35
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Hi Smooc - yes, busy as a bee. Hopefully you enjoy life yourself.

    I don't know much about short URLs, so if anybody can point me to some resources, and point out what is needed in Pagesetter, then I'll be happy to look at it.
  • Posted: 23.02.2004, 15:36
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    It isn't that difficult. Basically you will need to replace the calls to pnModUrl to a
    function you created yourself, checking whether mod_rewrite support is enabled.
    Maybe with a configurable URI.

    For example you could configure 'view' links to be created as:

    /content/[TID]/[PID].html

    which would be rewritten by mod_rewrite to:

    index.php?module=pagesetter&func=viewpub&tid=[TID]&pid=[PID]


Template courtesy of Designs By Darren.