Many PHP scripts, frameworks rely on the use of mod_rewrite for the application to correctly route requests.

Often times, checking if there is a fault in the set up of the application, or, whether or not mod_rewrite is enabled or working can be confusing. This simple test will verify that mod_rewrite is correctly working, so that this error can be eliminated from the list of possible causes.

Create a file called testpage.html which can contain any content.

Next, create a file called .htaccess and in this file, put the following code

RewriteEngine on
RewriteRule testpage\.html https://QRdvark.com [R]

Now, with a web browser, point towards this file. If mod_rewrite is installed and working correctly, the web browsers will be forwarded to the most awesome of sites, QRdvark.com