• 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 hreflang tags automatically in WordPress subdirectory multisite

PHP - Check if string contains words longer than 4 characters, then include "+ *", and for those shorter than 4 characters include only "*"

Call to a member function fetch_field() on a non-object MySQLiDB

woocommerce get_order_report_data to show order_item_id

phpseclib 2.0 can not use Composer to create autoload

Attempt to read property "view" on null when sending password reset email

How to auto populate preferredCountries from intl-tel-input with db output

The "client_reference_id" argument is not passed

Which is faster php date functions or carbon?

What is my SQL missing?

PHP array stringify

Extract house numbers from address string

Split array into 4-element chunks then implode into strings

Confirm Leave on External Links in Wordpress

How to MODIFY a Google Docs document via API using search-and-replace?

About Contact Privacy policy Terms and conditions