Why can only the homepage of a php website created under IIS in window be browsed normally ??? Request for advice

Source: Internet
Author: User
Tags php website
Why can only the homepage of a php website created under IIS in window be browsed normally ??? Ask the company to contact the website production company outside to create a website (php, using the Yii Framework). The original website was rented by others (Linux + Apache + MySQL ), now the leaders want to put the website on their own server (windows2008), and now the PHP runtime environment on our own server has been set up. after the website source code is put, they can only browse the homepage normally, if the links on the home page cannot be browsed normally, the error 404 is displayed when you click it. For example, the link points to/category/4, but the Category directory cannot be found under the root directory of the website, I am surprised that this website has no problem with the space originally rented. Why can't it be done here ????? I'm sure all website files have been downloaded through ftp
Is it related to the Yii Framework? what settings do I need? (I am not familiar with PHP and Yii frameworks ).


Reply to discussion (solution)

Adjust the route mode of the Yii project

Apache can easily support url rewriting, but iis is not that easy
You need to install rewrite plug-ins. installing pirated plug-ins in genuine systems is always not good. Although there are free, but the function is much weaker. I don't know if it can meet your needs.

How can I adjust the Yii routing mode? I have installed Apache in windows, but only the homepage is normal, and the link in it cannot be browsed normally. No problem with website background management

Apache too?
Can I enable url rewriting?

I guess it's about URL rewriting.


I don't know much about Apache configuration. after Baidu enabled the URL Rewrite, there is no 404 error, but it will directly link to the domain name of the original website.
For example, if my local test URL is http: // 192.168.1.8/, click "About Us" ("category/4 "), now I ran to the original website domain name down http://www.xxxxxxx.com/category/4
Can I modify this route to adapt it to the current website address ????


I don't know much about Apache configuration. after Baidu enabled the URL Rewrite, there is no 404 error, but it will directly link to the domain name of the original website.
For example, if my local test URL is http: // 192.168.1.8/, click "About Us" ("category/4 "), now I ran to the original website domain name down http://www.xxxxxxx.com/category/4
Can I modify this route to adapt it to the current website address ????
Modify the. htaccess file or the conf. php file.

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.