• Resolved radizzt

    (@radizzt)


    I created a simple insert form page template and added it through dashboard. When the user hit submit it, it direct them to another php file – that is not created through dashboard – and redirect them back to another WordPress page.

    This was working as intended on my local, but once I upload it on the server I keep getting the “File not Found” page.

    form tag:

    <form class="ts-form form-create-project small-12 column" id="createTimeSheetProject"  
    action="<?php echo get_stylesheet_directory_uri(); ?>/page-templates/time_sheet/insert_project.php" 
    onsubmit="return createProjectValidation()" method="post">

    I’m not entirely sure where the issue reside, but I’m using an Apache server and media temple is hosting it.

    my .htaccess file looks like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Edit: Not sure if this is important, but the this is a subdomain site

    • This topic was modified 8 years ago by radizzt. Reason: letting user know its a subdomain
Viewing 1 replies (of 1 total)
  • Thread Starter radizzt

    (@radizzt)

    Turn out it was just a user:group issue. Once I changed that everything was working as intended

Viewing 1 replies (of 1 total)
  • The topic ‘Backend PHP File Works Locally But Not On Server’ is closed to new replies.