Enabled Apache mod rewrite
Fixed installation Apache rewrite module code
Made .htaccess file dynamic