Showing results for 
Search instead for 
Did you mean: 

CatalogSearch Rewrite Rule

CatalogSearch Rewrite Rule

Hi all,

i'm trying from about 8 hours (without solutions) to change the rewrite Url for catalogsearch/result/?q=


if i put these lines in .htaccess

RewriteCond %{THE_REQUEST} \ /+catalogsearch/result/\?q=([^&\ ]+)
RewriteRule ^ /q/%1? [L,NE,R=301]
RewriteRule ^q/(.*)$ /catalogsearch/result/?q=$1 [L,NE,QSA]


it work well for my scope.. but always i have 404 error...


Can you help me please to solve?

Thanks in advance