If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

How to check whether mod_rewrite is enabled on server?

Our Support team is ready to present a new tutorial that shows how to check if mod_rewrite is enabled on your server.

How to check whether mod_rewrite is enabled on server?

  1. Open your website root directory, create a php file mod_rewrite.php:

    how_to_check__mod_rewrite_enabled_1

  2. Add the following line of code to it:

    		 <?php echo "Mod_rewrite is activated!"; ?>
    		 

    how_to_check__mod_rewrite_enabled_2

  3. Create .htaccess file (rename the original file to .htacess_original if you have it):

    how_to_check__mod_rewrite_enabled_3

  4. Add the following content to the file:

    		 RewriteEngine On
             RewriteRule ^.*$ mod_rewrite.php
    		 

    how_to_check__mod_rewrite_enabled_4

  5. Open your site. If you see a message “Mod_rewrite is activated!”, it is enabled on your server. If you see anything else – mod_rewrite is disabled.

  6. Make sure to delete the .htaccess file you created and rename the original file back:

    how_to_check__mod_rewrite_enabled_5

Feel free to check the detailed video tutorial below:

How to check whether mod_rewrite is enabled on server?