PicoCMS htaccess redirects

Discussion in 'DevOps' started by knownerror, Oct 30, 2016.

  1. knownerror

    knownerror

    Joined:
    Jul 6, 2015
    Messages:
    88
    Likes:
    64
    Degree:
    0
    Anyone have any idea how to fix PicoCMS while using .htaccess to create redirects?

    Example:

    Code:
    Redirect 301 /page/ http://domain.com/blog/page/
    Pico instead sends me to this:
    Code:
    http://domain.com/blog/page/?page/
    Also if a file is redirected from the base like:

    Code:
    Redirect 301 content.php http://domain.com/
    Sends me to:
    Code:
    http://domain.com/?content.php/ 
    (Yields a 404)

    Anyone know how to get around this? Something to do with how Pico deals with the URL structure but can't seem how to get around it. Thanks!
     
  2. coredev

    coredev

    Joined:
    Sep 26, 2016
    Messages:
    19
    Likes:
    28
    Degree:
    0
    Nothing like a late reply - but better than never.

    The fix is on config/config.php

    just uncommented out $config['rewrite_url'] and set it to true.

    I am playing with picocms right now (seems promising) Just learning as I go.
     
  3. knownerror

    knownerror

    Joined:
    Jul 6, 2015
    Messages:
    88
    Likes:
    64
    Degree:
    0
    Hey @coredev , yeah I ended up figuring it out way back. Your reply will end up helping others if they stumble over here.
     
    coredev likes this.