• 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

PHP/HTML: Creating A SubMenu

How to convert the int value to inch in PHP [closed]

Why does codeigniter & Linux server throws unserialize() session data error when user tries to login

How can I create a Download Page with post php method?

Google Gmail API - How to login programatically?

Project structure for PHP

Error Class "LaravelFortifyFeatures" not found

PHP Sorting - getting 10, 11, 12 ... 1, 20, 2 rather than 1, 10, 11, 12 ... 2, 20

How to create a video stream from a single dynamic image in PHP

Unable to get password for the instance created from AMI

Remove country code from phone number?

PHPExcel How to set conditional formatting to change cell background color based on cells values

Limit of log line written to Apache Errorlog from mod php error_log

Detect if PHP session exists

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given [duplicate]

About Contact Privacy policy Terms and conditions