Laravel on subdomain inner pages don't route - php

I have a Laravel installation installed on https://dev.example.com for the purpose of staging and development before I move it to https://www.example.com.
The server is running NGINX and the Laravel installation worked just fine on my local machine. All links routed correctly and there were no problems.
Now on this subdomain, any inner webpage I try and access is coming back as a 404 error, even if Laravel was the one that generated the URL.
For example:
"https://dev.example.com" will load just fine but "https://dev.example.com/contact" or "https://dev.exmaple.com/testimonials" will return a 404 error even if Laravel was in charge of the URL generation.
Important to add that it seems the 404 error is coming from NGINX and not Laravel
When I look at the NGINx logs I see
" "/var/www/html/public/testimonials" failed (2: No such file or directory)"
Can anyone help?

Related

I got the error failed to load module script on prod server in VueJs

I have deployed my vueJs code at ipage domain but when I open the domain I got the error failed to load module script.
I am expecting that my prod server working fine but getting error
First you have to build your vuejs app
npm run build
When Vue builds the app, by default it assumes that index.html will be in the root, as in http://my-server.com/index.html, therefore the base URL is /. so please be sure that index.html is in the public folder which your server points to and update me with your case i am here to help!

Symfony api/doc route shows 404 on live server, but is OK on localhost

I have deployed my Symfony 5 app on live server (production). I left my .env file with DEV variables.
Firstly my my homepage index.php was showing 404 URL not found on the server, so I had to execute ln -s public_src public and since that my homepage was showing fine.
However I required and implemented a NelmioApiDocBundle via composer and now my API doc route /api/doc is working only on localhost, on live server (production) the browser says 404 URL not found on the server.
How to fix it? Does it need another symlink?
You need to set the .htaccess file under public folder.

problems with the routes in server with iis

Develop a project in laravel and upload it to a server with IIS and when I try to use the paths that I defined I get error 400, but not the error 400 of laravel if no other, searching the internet I discovered that it is because of a problem with the configuration , missing this line of code
AllowOverride All
Normally this line is included when creating a virtual server on my pc, but in ISS I do not know how to solve it
http://186.24.32.115/web-spi/public - if I enter this url I load the web page well, but if I use the menu, I will leave error 400.
But if I do it this way http://186.24.32.115/web-spi/public/index.php I have no problem.
How do I make my routes work without using the index.php?

404 error wnen url redirected to another controller of same app on linux server

I have deployed my codeigniter application on linux server,when I am working locally it works fine but when I am hitting the controller or redirecting to another controller of same app giving out 404 error page not found.
All the needs I have googled of changing httpd.cong file, mod_rewrite_enable but nothing worked.

Laravel URL rewrite Error

Actually I am deploying my laravel 5 Application on Client Server.
My client create space for me in such type of path.
var/www/html/abcproject
Now I have uploaded my all laravel 5 file on abcproject directory.
My issue is that , my home page is working fine but my internal pages
are giving Not Found Error.
Suppose when I try to logged in, throwing this error.
Not Found
The requested URL /abcproject/login was not found on this server.
How to resolve that error?
You need to point the webroot to var/www/html/abcproject/public

Categories