• 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

auth pages not getting css in laravel

How to access a var with "-" in PHP [duplicate]

how to make my own auto increment in php?

Pagekite error: FAIL: localhost:8080 is down

How can I make good efficent AJAX live forms with just jQuery and

How can I get data from PHP to Android TextView?

Vimeo API: how to save a vimeo into a subfolder?

How to make dot match newline characters using regular expressions

Best way to scrolldown onpageload

Laravel Mix Uncaught ReferenceError: $ is not defined

How to set dynamic `home` and `siteurl` in WordPress?

How do I do HTTP basic authentication using Guzzle?

How to set a domain name with php artisan serve

Prestashop webservice API creating cart rules

Woocommerce Edit Message "An account is already registered with your email address. Please log in."

About Contact Privacy policy Terms and conditions