0

how do i remove %20 extra keyword url error in .htaccess ?

#Options +FollowSymLinks
Options -Indexes
RewriteEngine On


RewriteRule (.*)_hello_(.*)_lan_(.*)_html.html$ view_html.php?q=$1&sq=$2&lang=$3 [B,L]
RewriteRule (.*)_hello_(.*)_lan_(.*)_plain.html$ view_plain.php?q=$1&sq=$2&lang=$3 [B,L]

that extra %20 url got error..

http://example.com/Higher%20education_wikipedia_EDUCATIONS_lan_en_html.html

2
  • 1
    What error? %20 is the URL representation of a space. As long as you use spaces in the URL you will have %20in there. Commented Sep 26, 2023 at 14:24
  • And the example URL does not match the rules you've posted? Is _hello_ supposed to represent _wikipedia_??
    – MrWhite
    Commented Sep 26, 2023 at 15:20

0

You must log in to answer this question.

Browse other questions tagged .