How to enable the rewrite engine in .htaccess?

Apache: How to enable the rewrite engine in .htaccess?

Before you can use rewrite rules in .htaccess you must enable the rewrite engine.

To enable the rewrite engine in .htaccess you must add this to your .htaccess file:

  1. RewriteEngine On

webdevetc profile pic
webdevetc

I am a 29 year old backend web developer from London, mostly focusing on PHP and Laravel lately. This (webdevetc.com) is my blog where I write about some web development topics (PHP, Laravel, Javascript, and some server stuff). contact me here.



More...


Comments and discussion about How to enable the rewrite engine in .htaccess?

Found this interesting? Maybe you want to read some more in this series?

Or see other topics in the Apache language

Or see other languages/frameworks:
PHP Laravel Composer Apache CentOS and Linux Stuff WordPress General Webdev and Programming Stuff JavaScript
Or see random questions

How to install and use jpegoptim on Linux CentOS

How to return JSON data to the user in Laravel?

What are Template literals (Template strings) in JS?

How to review blog posts (written by other users) before they get published on your WordPress blog?

What is the max size, by default, of GET variables?

What is the loop variable in a @foreach loop in Blade?

How to find an item by Primary Key in Eloquent, or throw a ModelNotFoundException exception if it isn't found?

How to set up an alias to map one directory to another destination

What is YAGNI?

How to pick what array_intersect function to use in PHP?