• 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 display table header in every page using FPDF library?

How to insert data from multiple select dropdown values into database?

How to load Codeigniter 4 lang file into an array variable

Sentry + Laravel: how to log an already catched Exception?

Converting IPv6 to IPv4 address in PHP

Unable to get password for the instance created from AMI

Toggle between a textbox and a select using PHP

Yii2 select2 database exception number of bound variables does not match number of tokens

Laravel Nova, route not found

Get WooCommerce product variation attribute terms in admin products general box

Coinpayments create_transaction "ERROR: Invalid command!"

How to override header set in Apache config with more specific header in a virtual host

Custom API and cunsuming in php?

Symfony run hint kernel.secret parameter not found

How do I call Validator from a namespace with an already existing Validator class

About Contact Privacy policy Terms and conditions