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

 

  • 58 Users Found This Useful
Was this answer helpful?

Related Articles

How to install Wordpress

1. Download Wordpress from Wordpress web site. 2. Unzip the downloaded archive of WordPress...

Web hosting limit of the CPU time (CPU usage)

There is no limit on CPU time used per unit time of shared web hosting plans. If your hosting...

How can I make favicon

Make your image sizes to 16x16, 32x32 or 48x48 pixels and visit the following address:...

VPS with Perfect Money

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

How to transfer my domain name and web site

To transfer your domain and/or web site to us, it is necessary to place an order through the...