OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Redirect URL to a new page keeping the parameters

  • Thread starter Thread starter Ali
  • Start date Start date
A

Ali

Guest
I want to redirect to a new page keeping the URL parameters.

Example.

https://example.com/page/?p=2000&c=ast2001

To

https://example.com/new-page/?p=2000&c=ast2001

The query parameter are variable and will keep on changing.

I have tried a lot of .htaccess based solutions but none worked. Can you please give me a lead how how to do it?
<p>I want to redirect to a new page keeping the URL parameters.</p>
<p>Example.</p>
<p><a href="https://example.com/page/?p=2000&c=ast2001" rel="nofollow noreferrer">https://example.com/page/?p=2000&c=ast2001</a></p>
<p>To</p>
<p><a href="https://example.com/new-page/?p=2000&c=ast2001" rel="nofollow noreferrer">https://example.com/new-page/?p=2000&c=ast2001</a></p>
<p>The query parameter are variable and will keep on changing.</p>
<p>I have tried a lot of .htaccess based solutions but none worked. Can you please give me a lead how how to do it?</p>
Continue reading...
 

Latest posts

Top