How to enable rewrite mode for apache in ubuntu?
In this post we will give you information about How to enable rewrite mode for apache in ubuntu?. Hear we will give you detail about How to enable rewrite mode for apache in ubuntu?And how to use it also give you demo for it if it is necessary.
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:
You can remove index.php from url so run following command:
sudo a2enmod rewrite
sudo service apache2 restart
Now you can open this way:
Hope this code and post will helped you for implement How to enable rewrite mode for apache in ubuntu?. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs