• 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

PHP how to detect if running on arm64 cpu?

Check if a string contain multiple specific words

shell errors running php exec

Laravel: HTML in notification

How to average columns of data from multiple, flat arrays?

Laravel Pagination links() not working

How can I format this number correctly using PHP?

PHP - Store information with NO database

Is there a way to correctly use sanitize_text_field and wp_unslash that doesn't cause psalm to error with "expects string, possibly different type"

XAMPP/SQLSRV: Unable to find Sqlsrv in PHPINFO(); - errors coming from connection

How to keep value of selected value after form submission?

Laravel post contact form giving me error 419

500 (Internal Server Error) with Laravel & Docker [duplicate]

Session timeout in Yii2

Issue with laravel eloquent model property

About Contact Privacy policy Terms and conditions