in bash: sudo a2enmod rewrite; service apache2 restart Have index.php in /var/www/html. /var/www/.htaccess reads: RewriteEngine on RewriteRule. /index.php/ [L] Requesting domain.com/inde yields: The requested URL /inde was not found on this server.