Skip to content

Instantly share code, notes, and snippets.

@evo42
Last active April 29, 2017 15:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evo42/5577efce9a2f6550cba8 to your computer and use it in GitHub Desktop.
Save evo42/5577efce9a2f6550cba8 to your computer and use it in GitHub Desktop.
due payment reminder for WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .(wp-login)\.php*
RewriteCond %{HTTP_REFERER} !.*(no.payment|what.the.fuck).* [OR]
RewriteRule (.*) /pay-due-invoice-to-login.htm [R=301,L]
</ifModule>

due payment reminder for WordPress

your customer is not paying due invoices related to services related to wordpress? maybe a "pay due invoice to enable backend login" reminder will help.

usage

  • copy the contents of the .htaccess file into the existing .htaccess
  • copy the pay-due-invoice-to-login.htm file to the WordPress root directory
<html>
<head>
<title>Pay due invoice to enable backend login</title>
<style>
h1 {
text-align: center;
margin: 50px 0 0 0;
font-family: Helvetica;
}
</style>
</head>
<body>
<h1>Pay due invoice to enable backend login</h1>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment