• 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

Unable to match results of php hash_hmac() and coldfusion hmac()

Fatal error: Trait 'LaminasDbAdapterLaminasDbAdapterAdapterInterface' not found in /var/www/vendor/laminas/laminas-db/src/Adapter/Adapter.php

selected value from the listbox in php

array_map triple dimensional array [duplicate]

Convert regular text to array using notepad++

php: command not found Command PhaseScriptExecution failed with a nonzero exit code

How avoid Moved Permanently The document has moved here

Symfony run hint kernel.secret parameter not found

User pool client {id}does not exist

Laravel 5 controller sending JSON integer as string

Make Shipping Method fields Mandatory on Woocommerce checkout page

Is there an equivalent of DynamoDB on Azure as a PHP session Handler

find in set in laravel ? example

How to send upload image through email

What is my SQL missing?

About Contact Privacy policy Terms and conditions