1

I have some issue in URL redirecting. I've created a url redirect (in admin) without quotation and it's working fine. Example: http//www.domain.com/products/wingback-chair/leadimage.position=3

when ever I create a url redirect (in admin) with quotation mark like http//www.domain.com/products/wingback-chair?leadimage.position=3 the URL redirect does not work.it's shows 404 error.

Please tell me if there any possibilities via htacces convert "?" to "/" or any idea/suggestion. I appreciate your help.

1 Answer 1

1

You can use .htaccess for a few specific redirects, like if you want to redirect /page.php?id=4 to http://example.org/page/4 add the following lines

RewriteEngine On
RewriteCond %{REQUEST_URI}  ^/page\.php$
RewriteCond %{QUERY_STRING} ^id=([0-9]*)$
RewriteRule ^(.*)$ http://example.org/page/%1.pdf [R=302,L]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.