Skip to content

Instantly share code, notes, and snippets.

@lumpysimon
Created June 16, 2019 09:01
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lumpysimon/ac779b7f04b95e846dddce4e0c674de4 to your computer and use it in GitHub Desktop.
.htaccess short WordPress URLs
# e.g. https://example.org/go/76
RewriteEngine On
RewriteRule ^go/([0-9]+)$ ?p=$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment