Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save matthijskooijman/4cfa380f0f5b056117ffdaf97c3a3e9e to your computer and use it in GitHub Desktop.
Save matthijskooijman/4cfa380f0f5b056117ffdaf97c3a3e9e to your computer and use it in GitHub Desktop.
server {
listen 80;
listen [::]:80;
server_name www.by-brenda.nl by-brenda.nl;
# Enable PHP
include enable-php;
if (!-e $request_filename) {
rewrite ^/p2pshop/admin/(.*)$ /p2pshop/admin/index.php break;
rewrite ^/p2pshop/checkout/?$ /p2pshop/index.php?checkout;
rewrite ^/p2pshop/about/?$ /p2pshop/index.php?about;
rewrite ^/p2pshop/terms/?$ /p2pshop/index.php?terms;
rewrite ^/p2pshop/contact/?$ /p2pshop/index.php?contact;
rewrite ^/p2pshop/category-(.*)/?$ /p2pshop/index.php?category=$1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment