Why wordpress rewrite my custom URL?

Question

i am new in wordpress
There may a mapping question in my website

I hope this SEO URL is work and get Author data:
http://domain/web/d-search/M00069/TomLi
If not using SEO URL(get action), it is work!
http://domain/web/d-search?id=M00069&name=TomLi

When I enter
http://domain/web/d-search/00069/
The website will Rewrite to this URL
http://domain/web/d-search/69/
and the array result get $_GET[“id”] = 69

In this case, my page will 404 not found:
http://domain/web/d-search/00069/TomLi
http://domain/web/d-search/M00069/TomLi
http://domain/web/d-search/M00069/

Should I set or change something that can make my URL work?
Thanks a lot

In .htaccess

BEGIN WordPress

RewriteEngine On
RewriteBase /web/
RewriteRule ^index.php$ - [L]
RewriteRule ^d-search/([A-Z0-9]+)/(.*)/?$ /web/d-search?id=$1&name=$2 [QSA,L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /web/index.php [L]

END WordPress
0
, bhoqs 1 year 2020-07-24T07:10:25-05:00 0 Answers 45 views 0

Leave an answer

Browse
Browse