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.