phpstudy2018 How to achieve pseudo-static web pages
小千
小千 2018-07-26 19:01:35
0
2
3301

I used the 2016 version of phpstudy before. The website built with my website building program can achieve pseudo-static access. For example, http://localhost/blog.php can be converted into http://localhost/blog/ for access, and the root There is no blog folder in the directory.

Using the 2018 version of phpStudy, I found that the website was inaccessible as soon as it was installed. After working for a long time, I found that as long as there is .htaccess in the root directory of the website, it cannot be accessed. After deleting the .htaccess file, it can be accessed, but this also It can only be accessed through http://localhost/blog.php, and cannot be accessed through http://localhost/blog/

So I would like to ask you all, how to set up the 2018 version of phpstudy Only then can we easily achieve pseudo-static web pages like the 2016 version

小千
小千

reply all (1)
ringa_lee

Pseudo-static rules have nothing to do with the environment version. If you use apache, the rules need to be written in the .htaccess file. If you use nginx, find nginx.conf. You can access it by deleting .htaccess. Obviously There is a problem with the code in this file

  • reply The same .htaccess is fine in 2016, but there is a problem in 2018. How to do this
    小千 author 2018-07-27 03:40:48
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!