How to check if Mod_rewrite enabled on your server.

To check if Mod_rewrite enabled on your server you need to create two files and set them both at your public.html directory.

1. mod_rewrite_check.htaccess

RewriteEngine On
         RewriteRule ^.*$ mod_rewrite.php

2. mod_rewrite.php

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

3. At your public.html directory find ' .htaccess ' file and rename it temporary to ' my.htaccess '. If you don't have one, just go to step 4.

4. Rename ' mod_rewrite_check.htaccess ' to ' .htaccess '.

5. Run your home page on browser. The mod_rewrite.php file should return the answer "Mod_rewrite is activated!"

Do not forget to rename back your htaccess files after you finish testing.

If you got different response, ask your hosting provider to set up Mod_rewrite On.

 

OpenCart 3. 'Your shopping cart is empty!' in empty categories - solved