Sometimes we need to use pseudo-static when doing local testing of the website, so how to turn on pseudo-static using phpstudy? Let me share with you how to enable the pseudo-static function in phpstudy?
First, double-click the phpstudy software icon to open the phpstudy software.
As shown in the picture:
Then, find the "Other Options Menu" in the phpstudy software interface.
As shown in the picture:
Then,find the "Apache extension" under "php extensions and settings" in the pop-up drop-down menu ".
As shown in the figure:
Then, Find the "rewrite_module" module in the drop-down menu that pops up from the Apache extension, and click to enable it.
As shown in the picture:
ordirectly open the httpd.conf file in the apache configuration file, search for "LoadModule rewrite_module", and replace the preceding "#" Just delete the number.
As shown in the figure:
Then, In the httpd.conf file opened in the fifth step, search for AllowOverride None, and then Change AllowOverride None to AllowOverride All (there are many places that need to be replaced, you can use the find and replace function). Save when finished.
As shown in the picture:
##Then,restart the phpstudy service and click the start button of the phpstudy panel.
As shown in the picture:After completion, test whether the pseudo-static we enabled is successful. The simplest way is to install the discuz forum to test whether it is successful. Under normal circumstances, phpstudy turns on pseudo-static by default. No special settings are required.
As shown:Related recommendations:
How to set up pseudo-static in phpStudy v8.0 (Pictures and text)
The above is the detailed content of How to enable pseudo-static function in phpstudy 2018 (image and text steps). For more information, please follow other related articles on the PHP Chinese website!