DevHeads.net

Redirect BookMark Link

Hi All

We have an urgent requirement coming in to redirect the users Bookmarked
link

Example

The users has currently stored

<a href="https://example.com/page?orgId=1" title="https://example.com/page?orgId=1">https://example.com/page?orgId=1</a>

We need to redirect it to <a href="https://example.com/page?orgId=2" title="https://example.com/page?orgId=2">https://example.com/page?orgId=2</a>

Any help here would be appreciated

Thanks
Ajay

Comments

Re: Redirect BookMark Link

By Daniel Ferradal at 02/15/2019 - 14:26

Only rewritecond can check query string so, you need a rewritecond to
check for the specific query string you want to check, something like
this would literally do what you ask.

RewriteCond %{QUERY_STRING} ^orgId=1
RewriteRule ^/page$ /page?orgId=2 [R,L]

El jue., 14 feb. 2019 a las 17:16, Ajay B
(<ajay. ... at gmail dot com>) escribió:

Re: Redirect BookMark Link

By Ajay B at 02/16/2019 - 15:34

Thanks a lot for reply

This helped a lot