In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to open htaccess Ubuntu support configuration method, I hope you will learn something after reading this article, let's discuss it together!
Steps:
1. Terminal operation
The code is as follows:
Sudo a2enmod
The program prompts for the name of the module that can be activated, enter:
Rewrite
Or
The code is as follows:
Sudo a2enmod rewrite
Alternatively, you can open the Mod_rewrite module by connecting / etc/apache2/mods-available/rewrite.load to / etc/apache2/mods-enabled/rewrite.load. To operate with instructions is
The code is as follows:
Sudo ln-s / etc/apache2/mods-available/rewrite.load / etc/apache2/mods-enabled/rewrite.load
two。 Modify / etc/apache2/sites-enabled/000-default (the link points to the site profile)
Change the AllowOverride property under (the default www directory, or the directory where .htaccess needs to be applied) to All and save.
3. Reload apache
The code is as follows:
Sudo / etc/init.d/apache2 restart
The method of opening ModRewrite with xampp:
It is actually very simple to enable the Mod Rewrite function:
1. Find the file httpd.conf (located in etchttpd.conf) in your XAMPP installation directory
two。 Open it with vim or other text editor
3. Find "AllowOverride None" and replace it with "AllowOverride All". (just modify the first one)
4. Then find "# LoadModule rewrite_module modules/mod_rewrite.so" and remove the previous "#" sign.
5. Restart XAMPP
Then the Mod Rewrite function is turned on:)
After reading this article, I believe you have a certain understanding of "how to enable htaccess support configuration method for Ubuntu". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.