KNOWNHOST WIKI

User Tools

Site Tools


control-panels:cpanel-whm:how-can-i-enable-mod_rewrite-on-my-cpanel-server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
control-panels:cpanel-whm:how-can-i-enable-mod_rewrite-on-my-cpanel-server [2015/01/12 17:33]
Jonathan W.
control-panels:cpanel-whm:how-can-i-enable-mod_rewrite-on-my-cpanel-server [2020/06/16 13:53] (current)
Karson N. [Confirming mod_rewrite is enabled]
Line 1: Line 1:
 ====== Confirming mod_rewrite is enabled ====== ====== Confirming mod_rewrite is enabled ======
 +----
  
-<WRAP round info 80%> +<WRAP center round info 80%> 
-KnownHost's VPS's and Dedicated servers have mod_rewrite enabled by default! Lucky you! ;-)+KnownHost'((https://www.knownhost.com/managed-vps.html))**[[https://www.knownhost.com/managed-vps.html|VPS's]]** and ((https://www.knownhost.com/dedicated-servers.html))**[[https://www.knownhost.com/dedicated-servers.html|Dedicated servers]]** have mod_rewrite enabled by default! Lucky you! ;-)
 </WRAP> </WRAP>
  
 +\\
 ===== What is mod_rewrite ===== ===== What is mod_rewrite =====
  
Line 15: Line 17:
 In summary, mod_rewrite needs to be enabled on your server to use .htaccess configurations, such as redirects. In summary, mod_rewrite needs to be enabled on your server to use .htaccess configurations, such as redirects.
  
 +\\
 ===== Confirming mod_rewrite is enabled ===== ===== Confirming mod_rewrite is enabled =====
 Due to the overwhelming majority of websites requiring mod_rewrite, it's enabled by default. To confirm it's enabled you can perform the following: Due to the overwhelming majority of websites requiring mod_rewrite, it's enabled by default. To confirm it's enabled you can perform the following:
  
   - Log into your server as root via SSH terminal.   - Log into your server as root via SSH terminal.
-    * ssh root@serveripaddress -p 2200+<code> 
 +  ssh root@serveripaddress -p 2200 
 +</code> 
   - Query apache for currently installed modules, and search for 'rewrite'.   - Query apache for currently installed modules, and search for 'rewrite'.
-    * httpd -l |grep rewrite + 
-      <code>root@kbtuts [~]# httpd -l |grep rewrite +<code> 
-mod_rewrite.c</code>+  httpd -l |grep rewrite 
 +</code> 
 + 
 +<code> 
 +  root@kbtuts [~]# httpd -l |grep rewrite mod_rewrite.c 
 +</code>
       * If you see 'mod_rewrite.c' returned, you've now confirmed it's installed and enabled properly on your server.       * If you see 'mod_rewrite.c' returned, you've now confirmed it's installed and enabled properly on your server.
     * Video Coming Soon     * Video Coming Soon
  
 If mod_rewrite is not enabled, please open a ticket with the Support Department.  If mod_rewrite is not enabled, please open a ticket with the Support Department. 
control-panels/cpanel-whm/how-can-i-enable-mod_rewrite-on-my-cpanel-server.1421105637.txt.gz · Last modified: 2015/01/12 17:33 by Jonathan W.