• 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

Symfony Make:Migration : The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue

How to find phpcs current default standard

Lumen - Postgresql setup - Composer

Target Individual Form Instance/Counter Inside A PHP While Loop

How to submit the custom form data in database in WordPress without plugin using ajax?

WAMP/Wordpress - cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

how to youtube api data to print in toolset metabox using a button click before save-post

auth pages not getting css in laravel

Parameter is not sent to Laravel route in Ajax

Filter WooCommerce products with post__in and additional meta queries

How to break out of a foreach once a condition is met?

PHP: Print caught exception like Xdebug

hidden INPUT value not available in $_POST

Eloquent insert id with sequence next value

How to fix bootstrap multiselect search data using ajax

About Contact Privacy policy Terms and conditions