Skip to content
Advertisement

Laravel Project on Pleask except homepage other routes are not working

I uploaded files of my Laravel project at Plesk server in httpdocs folder and change necessary permission. Now my homepage is working fine but other routes showing 404 server error ( see screenshot [http://prntscr.com/h54nra][1])

For checking few solutions in different forums and at stackoverflow I also tried to make changes in my .htaccess file but yet unable to resolve. Currently I am using following code hor .htaccess file which is working fine on my localhost

JavaScript

Let me know if you find any solution for this

Advertisement

Answer

Since you are using IIS, .htaccess is not involved into redirects to open any of sub-pages except the main page. Instead, redirects should be specified in domain’s web.config file, for example:

JavaScript

This file should be placed in domain’s httpdocs or httpdocs/public folder, depending on the project configuration. The following tutorials may provide some other details regarding setting up Laravel in IIS: here and here

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement