• 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 - Sum up the numbers in an array one by one

merging two arrays with specified index

Symfony run hint kernel.secret parameter not found

mysql slow on updates for a well optimized query

500 (Internal Server Error) with Laravel & Docker [duplicate]

jQuery Ajax Post with data

In PHP, which is faster: preg_split or explode?

Warning file_get_contents () failed to open stream: HTTP request failed! HTTP/1.0 402 Payment Required

Laravel insert dynamic input values with radio button

Problem with fetching data from database in Laravel

Laravel Carbon throws error The format separator does not match

Apply filter array/return terms

Chunk and transpose a flat array into rows with a specific number of columns

I want to use codeigniter foreign character library in my custom PHP project how i can use it?

Sum array values

About Contact Privacy policy Terms and conditions