Under Apache 2+ you can simply do as below (Using Linux Terminal):
sudo a2enmod rewrite && sudo service apache2 restart
or
sudo a2enmod rewrite && sudo /etc/init.d/apache2 restart
More Related Contents:
- Reference: mod_rewrite, URL rewriting and “pretty links” explained
- Remove .php extension with .htaccess
- Tips for debugging .htaccess rewrite rules
- htaccess redirect to https://www
- How to Set AllowOverride all
- How do I disable directory browsing?
- htaccess remove index.php from url
- .htaccess rewrite subdomain to directory
- How to prevent http file caching in Apache httpd (MAMP)
- What does RewriteBase do and how to use it?
- How to debug .htaccess RewriteRule not working
- .htaccess ErrorDocument 404 not showing up
- .htaccess rewrite query string as path
- deny directory listing with htaccess
- How to redirect URLs based on query string?
- mod_rewrite: remove trailing slash (only one!)
- .htaccess rewrite “/book.php?id=1234” to “/book/1234”
- How to redirect non-www to www URL’s using htaccess?
- Laravel Routes not working, Apache configuration only allows for public/index.php/route
- mod_rewrite with anchor link
- Remove Characters from URL with htaccess
- CSS, JS and images do not display with pretty url
- mod_rewrite: remove query string from URL?
- .htaccess 301 redirect for all https to http EXCEPT ONE PAGE
- Rewrite Problem – L(ast) not being respected?
- Difference between $1 vs %1 in .htaccess
- Configure apache on elastic beanstalk
- Custom 404 error issues with Apache – the ErrorDocument is 404 as well
- Set Content-Disposition header to attachment only on files in a certain directory?
- AH10411 error: Managing spaces and %20 in apache mod_rewrite