Rewrite rules for Apache web server's mod_rewrite module are used in Webasyst to generate and process Search-engine friendly URLs as well as in other functions of some framework-based apps; e.g., to display arbitrarily sized thumbnails of product images in Shop-Script storefront.
This article describes how you can check whether that module is installed and is properly functioning on your server.
- Create temporary subdirectory mod_rewrite_test/ in your domain's root directory, and the following verification files inside it:
RewriteEngine On RewriteRule ^.*$ index.php
<?php echo 'mod_rewrite works!';
- Then type the following URL in your browser's address bar: http://yourdomain.com/mod_rewrite_test/check
If mod_rewrite is installed and is properly set up, “mod_rewrite works!” text will appear in your browser. Should this not happen, contact your server administrator to have the module correctly configured.