Categories: Php

How To Enable Mod_Rewrite Module In Apache for Xampp/Wamp

In This tutorial, I will describe how to enabled and disabled mode rewrite module into your wamp/xampp. The mod_rewrite is an Apache web server module that is used to rewrite a URL at the server level.

The mod_rewrite module normally uses a rule-based rewriting engine to rewrite requested URLs based on PCRE regular-expression parser, By default mod_rewrite maps a URL to a filesystem path. It allow you to rewrite URL based on server variables, environment variables, HTTP headers, or time stamps.

How to Enable/Disable apache mod_rewrite

This module main use for make URLs search engine friendly.A rewrite rule can be enabled through in httpd.conf or in .htaccess file.

There are following process will follow to enable .htaccess mod_rewrite in wamp/xampp

Step 1: Go to the directory of xamp/wamp installation : C:\xampp>\apache\conf

OR C:\wamp\bin\apache\Apache2.2.11\conf

Step 2: Open httpd.conf in a text editor.

Related Post

Step 3: Find the line which contains

#LoadModule rewrite_module modules/mod_rewrite.so

Step 4: Removed (#) from start of line to make module enable.

Step 5: Now Change all occurrences of
AllowOverride None
and replace to
AllowOverride All

Step 6: Now restart wamp/xampp server.

I hope its help you.

View Comments

Recent Posts

What is the Purpose of php_eol in PHP?

in this quick PHP tutorial, We'll discuss php_eol with examples. PHP_EOL is a predefined constant in PHP and represents an… Read More

2 months ago

Laravel Table Relationship Methods With Example

This Laravel tutorial helps to understand table Relationships using Elequonte ORM. We'll explore laravel table Relationships usage and best practices… Read More

2 months ago

Exploring the Power of Laravel Eloquent Join?

We'll explore different join methods of Laravel eloquent with examples. The join helps to fetch the data from multiple database… Read More

2 months ago

Quick and Easy Installation of Laravel Valet

in this Laravel tutorial, We'll explore valet, which is a development environment for macOS minimalists. It's a lightweight Laravel development… Read More

3 months ago

What is Laravel Soft Delete and How Does it Work?

I'll go through how to use soft delete in Laravel 10 in this post. The soft deletes are a method… Read More

3 months ago

Common Practices for Laravel Blade Template

in this Laravel tutorial, I will explore common practices for using the Laravel Blade template with examples. Blade is a… Read More

3 months ago

Categories