• 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 can I make a full text index of the column?

Losing session data after POST from third party website

Entity provider not working in security.yml php symfony3.4 ({"code":401,"message":"bad credentials"}.)

How avoid Moved Permanently The document has moved here

How to fix 'Data has already been sent to output, unable to output PDF file' in MPDF

PHP DOTENV unable to load env vars

Session timeout in Yii2

add " ? " in url via htaccess RewriteRule

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

Split a string array into pieces

Laravel phpunit test failing authorization

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

How to fix " Uncaught TypeError: Argument 1 passed to JpGraphException::defaultHandler() " problem in php 7.1.3 and jpgraph 4.2.6?

IlluminateDatabaseQueryException: SQLSTATE[HY000]: General error: 1 no such table - In clone project

Debugging Stripe Webhook Event

About Contact Privacy policy Terms and conditions