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.
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.
This tutorial helps integrate a PHP SDK with Laravel. We'll install aws-php-sdk into laravel application and access all aws services… Read More
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
This Laravel tutorial helps to understand table Relationships using Elequonte ORM. We'll explore laravel table Relationships usage and best practices… Read More
We'll explore different join methods of Laravel eloquent with examples. The join helps to fetch the data from multiple database… Read More
in this Laravel tutorial, We'll explore valet, which is a development environment for macOS minimalists. It's a lightweight Laravel development… Read More
I'll go through how to use soft delete in Laravel 10 in this post. The soft deletes are a method… Read More
View Comments
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!!