• 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

Nginx disallowing execution of PHP in uploads directory with Magento

How to get company posts from LinkedIn via API?

How to access a var with "-" in PHP [duplicate]

How to convert the int value to inch in PHP [closed]

Wordpress how to get the post thumbnail inside a figure tag

Transfer data between JavaScript and PHP through JSON

laravel controller function parameters

Toggle between a textbox and a select using PHP

PHP -> Next nearest date defined by array of days in week

How do I call Validator from a namespace with an already existing Validator class

Laravel Nova Dependency Container what are the allowed resource properties other than id in dependsOn

How to assert parameter attribute sub-structures in PHPUnit mock call expectations

NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory)

What is the difference between client-side and server-side programming?

What will the best solution for this multiple optional filter?

About Contact Privacy policy Terms and conditions