.htaccess不遵循请求的URL | codeigniter网址路由

The original URL :

https://www.doctor24.ro/i/index.php/en/property/54a402a9d4f13/Sapientek-Ecografie

The requested url after .htaccess :

https://www.doctor24.ro/i/cabinet/Sapientek-Ecografie

The .htaccess

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^cabinet/(.*)$ ./index.php/en/property/([a-zA-Z0-9-=_?]+)*$

What is the problem ?

UPDATE :

The script I'm using uses the codeigniter url routing .

Updated Try the below now:

RewriteRule ^i/cabinet/(.*)$ i/index.php/en/property/$1

You cannot use regex on right hand side, just use back-reference variable. Also looks like you're placing this .htaccess in /i/ folder. You will need to use appropriate RewriteBase as well:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /i/

RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^cabinet/(.*)$ index.php/en/property/$1 [L,NC]