Checking Apache mod rewrite: Difference between revisions
Jump to navigation
Jump to search
1. Open the root directory (or admin directory if you fail to open the admin page) of your website, create a file check_mod_rewrite.php with the following line:
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 2: | Line 2: | ||
{{#seo:|description=This page describes the process of checking Apache mod rewrite before installing the osCommerce version 4.x}} | {{#seo:|description=This page describes the process of checking Apache mod rewrite before installing the osCommerce version 4.x}} | ||
{{#seo:|keywords=Apache, mod rewrite, check}} | {{#seo:|keywords=Apache, mod rewrite, check}} | ||
If after you installed osCommerce 4.x you fail to open the admin page or the pages under '''Sales Channels''' tab cannot be opened the fact that '''mod_rewrite''' does not work may cause this issue. | <h2>If after you installed osCommerce 4.x you fail to open the admin page or the pages under '''Sales Channels''' tab cannot be opened the fact that '''mod_rewrite''' does not work may cause this issue.</h2> | ||
In order to check that mod_rewrite is enabled and works correctly perform the following actions: | <h3>In order to check that mod_rewrite is enabled and works correctly perform the following actions:</h3> | ||
1. Open the root directory (or admin directory if you fail to open the admin page) of your website, create a file '''check_mod_rewrite.php''' with the following line: | <h4>1. Open the root directory (or admin directory if you fail to open the admin page) of your website, create a file '''check_mod_rewrite.php''' with the following line: | ||
<code><?php echo "<nowiki><h1>Mod_rewrite is working well</h1></nowiki>";</code> | <code><?php echo "<nowiki><h1>Mod_rewrite is working well</h1></nowiki>";</code> | ||
Line 20: | Line 20: | ||
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. | 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. | 5. Delete the .htaccess file you created and rename the original file back.</h4> |