I thought apache mod_rewrite would hide the URL it redirects to. that is, if the user enters http://site.com/iPhone and I configured it to redirect to http://site.com/search.php?search=iPhone I would expect http://site.com/ Will the iPhone still display in the address bar?
.htaccess:
<IfModule mod_rewrite.c> RewriteEngine on Options +FollowSymlinks RewriteBase / RewriteRule ^search/(.*) search.php?search=$1 [R] </IfModule>
Am I completely embarrassed?
The modifier [R]forces you to redirect the response to a new URL, rather than being processed in-place. Drop it and it should work (despite any other problems).
[R]
URL-, mod_rewrite - ( ILoveJackDaniels).
mod_rewrite
Source: https://habr.com/ru/post/1703853/More articles:WLST recommendations: Shell vs MBeans? - weblogichttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1703849/limit-choices-to-foreignkey-using-middleware&usg=ALkJrhh8W-imP0-zxSIjv4pQsJ-Yehsj0QWhy use WAS-CE over Apache Geronimo? - apacheAJAX Progress Bar - poll, comet? - ajaxIs there an equivalent Django app template in Google App Engine? - pythonWhat does $ (var) mean in ActionScript? - operatorsSeparating webdevelopment from webdesign - phpHow do you deal with generated code? - javaRecommendations for duplicating C # code - c #Are conflicting types always a problem in C? - cAll Articles