How to enable rewrite mode for apache in ubuntu?
Whenever you need to rewrite index.php file from url you can find solution here. you can easily enable rewrite mode using bellow terminal command. when i create one virtualhost for my laravel application and open in browser and open my created virtual url. but when i click on login i found following error :
URL not found....
But when i try add index.php like this way then it works:
http://test.hd/index.php/login
You can remove index.php from url so run following command:
sudo a2enmod rewrite
sudo service apache2 restart
Now you can open this way:
http://test.hd/index.php/login

Hardik Savani
I'm a full-stack developer, entrepreneur and owner of Aatman Infotech. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Laravel, Angular, Vue, Node, Javascript, JQuery, Codeigniter and Bootstrap from the early stage. I believe in Hardworking and Consistency.