• 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

How to use React Router with Laravel?

Add customer email and phone in "Order" column to admin orders list on Woocommerce

Dropdown with current value from Mysql

How to override htaccees file for cache control header

Laravel Carbon throws error The format separator does not match

Saving Data from form to database using AngularJS and php

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

Explode not working properly with dash

Target Individual Form Instance/Counter Inside A PHP While Loop

Laravel database insert with combining array and string

sort() not affecting original array while inside foreach loop

phpunit - testing is painfully slow

SendGrid: Sending an email to multiple recipients without other emails being shown on the "to" field

How to pass security cloudflare server with php curl

PHPUnit gives error: Target [IlluminateContractsViewFactory] is not instantiable

About Contact Privacy policy Terms and conditions