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 namespace a Laravel route group?

What kind of database field type should you (normally) use for foreign keys?

What does 'final class' and 'final function' (final method) mean in PHP?

How to install and use optipng on Linux CentOS

What is an example of an object literal?

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

What are the main error types in PHP

How to enable the rewrite engine in .htaccess?

How to view all installed PHP modules?

How to hide directory listing in .htaccess?