jueves, 8 de mayo de 2014

testing mod rewrite apache

file .htaccess
RewriteEngine On 
RewriteRule ^.*$ index.php

file index.php
<?php
print 'mod_rewrite works!';
?>

Simply put this two files in /var/www/test_mod_rewrite and from the browser call localhost/test_mod_rewrite. "mod_rewrite_works!" should be printed