• 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

Get image type from base64 encoded src string

PHP - installing Xdebug on Mac with XAMPP (Unix File)

Error Class "LaravelFortifyFeatures" not found

CSV to PHP class properties

php echo xml documents with header

Any AWS EB Laravel route getting 404 Not Found nginx/1.16.1

PHP Form Not Inserting

Laravel Jetsream Profile page not loading on fresh install

Laravel - Implicit route model binding with soft deleted data

How to send parameters in soap request in php in __soapcall() function

Target class controller does not exist - Laravel 8

How to get page number on dompdf PDF when using "view"

Distribute array row data to make multiple new rows

PHP: How to raise number to (tiny) fractional exponent?

mysql slow on updates for a well optimized query

About Contact Privacy policy Terms and conditions