My old website had urls like:
domain.com/search.php?query=query
domain.com/product.php?id=id
I need to redirect requests to these files (and only these files) to:
domain.com
I'm using the Laravel framework that uses a single index.php file.
I've tried:
-Placing files named "search.php" and "product.php" in my root directory that redirects the user.
-Adding to Nginx conf:
location /search.php {
return 301 http://domain.com;
)