Before the company has a Web site is PHP, using the front-end server is Apache,
After the development of the staff have left, and now need to change the site to another front-end for the Nginx server
However, after the transfer of the past, found on the page all the addresses are inexplicably more than a index.php directory.
Result of the style, the picture link is not all normal display, want to ask if anyone has encountered this situation
How does this work? Thank you.
Reply to discussion (solution)
What frame was used? Nginx. htaccess and rewrite rule are not fully compatible with Apache.
What frame was used? Nginx. htaccess and rewrite rule are not fully compatible with Apache.
It seems to have been made with something called SilverStripe.
Should be rewrite rewrite rule is invalid, or incompatible,
Your. htaccess doesn't work, check to see if Ngix's rewrite rules are turned on
Nginx does not support. htaccess, so you're going to put it in. Rewrite??? of. htaccess? Into the Nginx configuration file, and then reload a bit.
Also note: Apache and Nginx rewrite?,? one? You can go to search engines to search the difference between the two?
What do you have to open index.php?
And before you, if you were Apache and escaped to Nginx, your pseudo-static rules would be changed accordingly.