Fork me on GitHub

ShortURL process  Bottom

  • Hi All

    Expanding on a topic that I started elsewhere.

    Two installs of PN.8MS2. Both use the same config.php and same DB.

    The setup that I have means that everything is identical for both installations (same server, same DB, same PN but copied twice in diff dir's) except for different host headers !

    The live directory is root at live.domain while the dev copy is in a sub-dir like dev.domain/postnuke/

    I have just stepped through and tested all combinations of off / file / dir shorturls with the following results.

    ShortURL option OFF - (afterthought: .htaccess for files was present)

    live index.php?module=Legal OK
    dev index.php?module=Legal OK

    ShortURL option ON / File ON (.htaccess for files)

    live module-Legal.html OK
    dev module-Legal.html FAIL

    ShortURL option ON / File ON (.htaccess for dirs)

    live index.php/Legal/ FAILS
    dev index.php/Legal/ FAILS

    ShortURL option ON / File ON /StripEntry ON (.htaccess for dirs)

    live Legal/ FAILS
    dev Legal/ FAILS

    Somewhere in the chain of apache/mod_rewrite/.htaccess something is failing to process the conversion. So its probably an Apache httpd.conf issue rather than PN which I'll look at further but since I have typed this up already I might as well post it.






    --
    cheers
    Tony

    Marble Bay : PostNuke Dev Work
    Wren/Maxwell : PostNuke Hosting

  • Hi All

    Not a PN problem, but a sysadmin issue, namely me!

    .htaccess will not work without AllowOverride in the httpd.conf for the directory.

    What took me 24 hours to realise was that the 'live' site was covered by the default apache config instructions while the 'dev' site was not and needed the 'AllowOverride All' instruction to be added to the virtual host section.




    --
    cheers
    Tony

    Marble Bay : PostNuke Dev Work
    Wren/Maxwell : PostNuke Hosting

  • Thanks for reporting your solution to the problem.

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide

This list is based on users active over the last 60 minutes.