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.
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.
I’m on Windows 10 Pro, xampp 3.2.2 and installing Slim4 framework per their instruction:
http://www.slimframework.com/docs/v4/start/web-servers.html
“Make sure to enable Apache’s mod_rewrite module and your virtual host is configured with the AllowOverride option so that the .htaccess rewrite rules can be used:”
I followed this article and I’m still getting an error:
“Details Type: Slim\Exception\HttpNotFoundException Code: 404 Message: Not found”
Hi,
please give totorial for nginx user
ya, sure, i ll share this week
Thank you so much!!