Skip to content

Instantly share code, notes, and snippets.

@pointofpresence
Last active May 26, 2021 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pointofpresence/79fbc9fd6197dafae20b015bb6fae7e1 to your computer and use it in GitHub Desktop.
Save pointofpresence/79fbc9fd6197dafae20b015bb6fae7e1 to your computer and use it in GitHub Desktop.
Redirect with query
<?php
header("Status: 301 Moved Permanently");
header("Location: ./content/index.html".($_GET ? "?".$_SERVER['QUERY_STRING'] : ""));
die();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment