Unbelievable Tips About How To Check If Mod_rewrite Works
Now save the file as rewrite.php in your test directory step 4.
How to check if mod_rewrite works. This will return an array of all enabled modules, so to check if mod_rewrite is enabled, you could simply do. It then check these url request against a series of. To test if mod_rewrite is working correctly, do the following:
This will return an array of all enabled modules, so to check if mod_rewrite is enabled, you could simply do. 9 answers 1) type <?php phpinfo (); Rename it to htaccess_tester.php, if needed.
If you're using mod_php, you can use apache_get_modules (). If it doesnt you either did something wrong. Now click on link2 and the same page will display with the a mod_rewrite message.
If all goes well you should be redirected to. You can check it in few ways. In order for apache to understand rewrite rules, we first need to activate mod_rewrite.
Sudo service apache2 restart to ensure that,. If you're using mod_php, you can use apache_get_modules (). Step 1 — enabling mod_rewrite.
That link should redirect you to my website. ?> in a php file and save it and run that file in the server. Sudo a2enmod rewrite the last one, restart your apache service: