• 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 " ? " in url via htaccess RewriteRule

php.htaccess


PHP Snippet 1:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{QUERY_STRING} ^/([a-z]+)/f_search$
RewriteRule ^/?(?:([a-z]+)/)?new\.php$ /f_search.php?langs=$1&langs=%1

PHP Snippet 2:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?([a-z]+)/new.php$ f_search.php?langs=$1 [L,NC]

Related Snippets

Adding reCAPTCHA v2 into my PHP file

Toggle between a textbox and a select using PHP

What will the best solution for this multiple optional filter?

Display Brand Name Above Product Title in Woocommerce Cart, Checkout Page, Orders and Email Notification

Form repeater send wrong data with last element in Laravel

Insert database rows from columns of data from associative array of indexed arrays

Why does array_map() with null as callback create an "array of arrays"?

How to pass security cloudflare server with php curl

(Laravel) How to delete multiple models including optional relationships?

How to install PHP composer inside a docker container

Convert PHP array into HTML tag attributes separated by spaces

Laravel Sanctum CSRF not authenticating

(Cache::lock()) -> get() -- Under what conditions does it return false?

Don't show recurring price for WooCommerce subscriptions worth 0$

nginx err_connection_refused, can anyone help me?

About Contact Privacy policy Terms and conditions