• 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

Select option menu read from database and use it's values

Implode array with array of glue strings

Testing subscription renewals on Stripe

Laravel eloquent update record without loading from database

SMTP ERROR: MAIL FROM command failed: 530 5.7.0 Must issue a STARTTLS command first when using PHPMailer

WooCommerce Subscriptions: Remove role on cancelled subscription

Redis Command To Sort Keys

Remove categories with all childs derived from parent category

Apply session id from request header

How can i hide dt if dd got empty value

SQL AVG() to 2 decimals

How to loop a tree array with unknown depth and get array blocks?

*** ERROR *** The PHP configuration loaded file is: c:/wamp64/bin/php/php8.1.0/php.ini - should be: c:/wamp64/bin/apache/apache2.4.53.1/bin/php.ini

Hide specific products from unlogged users based in product category in WooCommerce

Can't remotely connect to MySQL error (13) with PHP script, connecting through CLI works

About Contact Privacy policy Terms and conditions