I shouldn't think it would make a difference.
Open up developer tools in Chrome and switch to the network tab.
Here you can see what is happening with your Ajax requests. Check the correct urls are being used.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I moved a Laravel 4.2 application from my development server which runs on nginx (no SSL) to a shared hosting server which runs on Apache ( with SSL ).
[ edited ] The problem : The site's JS scripts ( multiple JQuery Ajax functions ) was fully tested and worked as intended while the application was on the nginx server. Once migrated to the production server which run on Apache, Ajax function with "POST" method stopped working!
My .htaccess file looks like this:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
and filters.php has:
App::before(function($request)
{
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST, PUT, PATCH, DELETE, OPTIONS');
header('Access-Control-Allow-Headers: Origin, Content-Type, Accept, Authorization, X-Request-With');
header('Access-Control-Allow-Credentials: true');
if( ! Request::secure() )
{
return Redirect::secure( Request::path() );
}
});
Here is an example Headers from production
Remote Address:ipAddress:443
Request URL:https://example.com/store/
Request Method:POST
Status Code:301 Moved Permanently
The same exact request on development
Remote Address:ipAddress:80
Request URL:http://example.com/store/
Request Method:POST
Status Code:200 OK
A little hint to confirm if the above configuration has nothing to do with the problem or where to investigate, is greatly appreciated!
Thanks
[Edited 5-27-2015] rephrased some wording
I shouldn't think it would make a difference.
Open up developer tools in Chrome and switch to the network tab.
Here you can see what is happening with your Ajax requests. Check the correct urls are being used.
Please or to participate in this conversation.