简体   繁体   中英

htaccess URL Text Removal In Betwee Slashes

REAL URL: - http://www.bankifscfinder.com/branch_list.html?p_num=297&&&ser_bankname=147

Duplicate URL: - http://www.bankifscfinder.com/aaa/branch_list.html?p_num=297&&&ser_bankname=147

I want to redirect url to REAL url if user enter any text in like "aaa" or anything else. Numbers in url is CMS provided.

Put this code in your .htaccess file

RewriteEngine On
ErrorDocument 404 /404.php

where 404.php is the file name and placed at root. You can put full path over here.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM