Checking Apache mod rewrite
Jump to navigation
Jump to search
<?php echo "<h1>Mod_rewrite is working well</h1>";
2. Rename the original file from .htacess to .htacess_original
3. Create a new .htaccess file with the following line:
RewriteEngine On
RewriteRule ^.*$ check_mod_rewrite.php
4. Open your web site (or /admin page). If you see a message “Mod_rewrite is working well”, it is ok. If you see anything else - mod_rewrite is disabled or incorrectly configured.
5. Delete the .htaccess file you created and rename the original file back.