• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Add New Parameter to Existing URL using htaccess

phpapache.htaccessredirectmod-rewrite


PHP Snippet 1:

RewriteEngine on
RewriteCond %{QUERY_STRING} ^(?!email)
RewriteRule index3.php$ /index3.php?email=somevalue [L,R,QSA]

PHP Snippet 2:

RewriteCond %{THE_REQUEST} !\?email= [NC]
RewriteRule index3.php$ /index3.php?email=mail [L,R]

Related Snippets

How to run a shell as root from php (apache)

How to solve cURL error 60: SSL certificate in Laravel 5 while Facebook authentication

How to get variable from JavaScript to PHP [duplicate]

Change the alert text on add to cart action without selected variation in Woocommerce

How to get AJAX to post on second page?

browsersync doesn't work with XAMPP

How should I get started using PHPUnit as a testing framework for a bunch of functions and classes I have already made?

laravel MVC execution flow

Clients authentication and user authentication with laravel

PHPExcel_IOFactory::createWriter causes wrong behaviour

Remove categories with all childs derived from parent category

using random function but it's displaying duplicates

Laravel Excel::store file empty after stored

RabbitMQ PRECONDITION_FAILED - unknown delivery tag

XAMPP/SQLSRV: Unable to find Sqlsrv in PHPINFO(); - errors coming from connection

About Contact Privacy policy Terms and conditions