@diegofrancesco Posted September 14, 2023 Share Posted September 14, 2023 Hello, I need to redirect the URL of a single search to a specific page, with htaccess. I have read many threads about redirect with parameters but no tested solution works in my case. old url /research?controller=search&s=brand new url https://www.domainname.com/5_c-brand? How should I set up the redirect to make it effective? Thanks in advance One of the various tests I did was this: RewriteEngine On RewriteCond %{QUERY_STRING} ^controller=search&s=brand$ RewriteRule ^ https://www.domainname.com/5_c-brand? [R=301,L] or this RewriteEngine On RewriteCond %{QUERY_STRING} ^controller=search&s=brand RewriteRule ^research https://www.domainname.com/5_c-brand? [NC,R,L] Link to comment Share on other sites More sharing options...
Whiley Posted September 15, 2023 Share Posted September 15, 2023 Redirect /research?controller=search&s=brand https://www.domainname.com/5_c-brand? Link to comment Share on other sites More sharing options...
@diegofrancesco Posted September 15, 2023 Author Share Posted September 15, 2023 34 minutes ago, Whiley said: Redirect /research?controller=search&s=brand https://www.domainname.com/5_c-brand? A basic redirect doesn't work if there are parameters in the URL. Link to comment Share on other sites More sharing options...
Olivier CLEMENCE Posted September 15, 2023 Share Posted September 15, 2023 You can use this module to do that : https://addons.prestashop.com/en/url-redirects/86239-op-art-easy-redirect-seo-redirect-301-302.html Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now