• 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

Check If array is null or not in php

MongoDB Duplicate Documents even after adding unique key

How can I format this number correctly using PHP?

how to see if database exists with PDO [duplicate]

Alert message after submitting form in PHP

How do I loop through an MS SQL database with VB.NET?

SendGrid: Sending an email to multiple recipients without other emails being shown on the "to" field

Install mysql client in docker image

Is there an equivalent of DynamoDB on Azure as a PHP session Handler

Add Class in html Dynamically in PHP

Woocommerce Checkout - Add conditional field required if one field is filled

backup files to google drive using PHP

laravel automatically deletes server.php on php artisan serve

How to find phpcs current default standard

Eloquent insert id with sequence next value

About Contact Privacy policy Terms and conditions