0

Any help regarding the topic will be much appreciate!

What we are trying to do is this :

This link : http://www.example.com/?ModuleVal=SomeDetails&Stdold=1287 we need to redirect to this link: http://www.example.com/?ModuleVal=SomeDetails&StdoId=2862 via .htaccess

How can we properly configure this kind of redirection/rewrite?

Thank you.

Nic3500
  • 8,144
  • 10
  • 29
  • 40
chen
  • 3
  • 4
  • Possible duplicate of [redirect a specific url to another url with .htaccess](https://stackoverflow.com/questions/31829149/redirect-a-specific-url-to-another-url-with-htaccess) – Saad Suri Oct 31 '17 at 11:54

1 Answers1

0

Please try it:

<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{QUERY_STRING} ^ModuleVal=SomeDetails&Stdold=1287$
    RewriteRule ^/?$ /?ModuleVal=SomeDetails&Stdold=2862 [L,R=301]
</IfModule>
mokamoto12
  • 383
  • 1
  • 6