Redirect based on a query string

Question

I am working on project where the previous web developer has left the company. There is redirect happening based on the query string and I can’t figure out where. The example URL is https://www.example.com/?something. I want this URL to point to front-page.php, where as it is always pointing to home.php. That happens only when I have the query string something in the url. If I use somethingelse or nothing in the query string it would work fine and redirect to front-page.php.

I have read this article (https://developer.wordpress.org/themes/basics/template-hierarchy/) from WordPress but I sill can’t figure out where the redirection is happening. I want the URL to point front-page.php

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/redirect-based-on-a-query-string/">

Redirect based on a query string</a>
0
, , , , Abel 2 months 0 Answers 36 views 0

Leave an answer