There was a problem with PHP transferring the server.

Source: Internet
Author: User
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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.