We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37946
    • 70 Posts
    Locally, the site runs without any errors. When I upload the site to my server, I am getting a 404. MODx can't find the file.
    (I'm getting a MODx 404 anyway).

    Local result:
    http://local.mysite.com/dir/fileName/methodName
    
    {"success":true,"msg":"Call was successful.","data":{"methodName":{values....
    



    This is what is getting returned when I output the $_GET global on my server:
    http://mysite.com/dir/fileName.php/methodName
    
    array(1) { ["q"]=> string(30) "redirect:/dir/methodName" }
    


    However, if I put the extension in, the system can find the file:
    http://mysite.com/dir/fileName.php/methodName
    
    array(1) { ["q"]=> string(4) "dir" } {"success":false,"msg":"invalidMessage","data":null}
    


    I have a regex in my .htaccess file that looks for the "dir" and handles it appropriately.
    When I upload my codebase to my server, I am getting the "redirect:" prepended.

    All of my config settings for apache seem to be the same in terms of mod_rewrite. Not sure where else to look?
    Thank you for your time!