How do I check if Apache mod_rewrite is working

Add the following in the .htaccess file:

RewriteEngine On
RewriteRule ^test.html$ /test2.html [R=301]

If mod_rewrite works, this will redirect the test.html file to test2.html

In the test.html file place text: Does not work
In the test2.html file place text: Work

 

  • 55 Users Found This Useful
Was this answer helpful?

Related Articles

VPS with WebMoney

QHoster accepts WebMoney for all VPS services! You can buy Linux or Windows VPS and pay...

How long does it take to make my site accessible on the Internet

Your hosting account will be created and the domain name will be registered immediately after the...

Do you support SSI (server side includes) on html pages

Yes we do. SSI or Server Side Includes is supported by all hosting plans.  

VPS with Payza

QHoster accepts Payza for all VPS services! You can buy Linux or Windows VPS and pay with Payza...

VPS with SolidTrust Pay

QHoster accepts SolidTrust Pay for all VPS services! You can buy Linux or Windows VPS and pay...