![]() ![]() If # is not present at the beginning, it means mod_rewrite is already enabled Look for the line #LoadModule rewrite_module modules/mod_rewrite.soĪnd remove the # sign at its beginning, to enable mod_rewrite LoadModule rewrite_module modules/mod_rewrite.so If mod_rewrite is not enabled then open Apache’s default configuration file $ sudo vi /etc/httpd/conf/nf It means mod_rewrite is already enabled in your CentOS linux.īonus Read : How to Redirect Domain Without Changing URL If you see the output as: rewrite_module (shared) Open terminal and run the following command to check if mod_rewrite is already enabled in your system $ httpd -M | grep rewrite Check if mod_rewrite is already installedĬentOS 7 and later versions have mod_rewrite installed and enabled by default. Here are the steps to enable mod_rewrite for Apache in CentOSġ. How To Enable mod_rewrite For Apache in CentOS Here’s how to enable mod_rewrite for Apache in CentOS, Fedora, Redhat Linux and other platforms. ![]() ![]() Mod_rewrite is a useful Apache module that helps you rewrite URL and redirect pages in Apache web server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |