Search
Convert Apache Redirect, RedirectMatch, and common RewriteRule / RewriteCond lines into nginx rewrite or return directives.
Redirect 301 /old-page /new-page
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,R=301]
Apache and nginx express redirects differently. Redirect and RedirectMatch become rewrite ... permanent|redirect. RewriteRule flags R, L, NC, and QSA are mapped where nginx has an equivalent. RewriteCond is supported for HTTPS and HTTP_HOST. Anything else is listed as skipped so you can finish it by hand.
robots.txt and Sitemap Validator
Paste a robots.txt or sitemap XML file and check directives, URLs, and lastmod dates. Optionally fetch a public URL.
UTM Campaign Builder
Add utm_source, utm_medium, utm_campaign, utm_term, and utm_content to a URL and copy a campaign link.
Meta Tag and OG Preview Generator
Build Open Graph and Twitter meta tags and preview how a link card will look.
From the blog
Moving Apache Redirect and RewriteRule lines to nginx
Redirect, RedirectMatch, and common RewriteRule flags have nginx equivalents. Anything you cannot map should stay skipped.
From the blog
Disallow before User-agent: the robots.txt mistake that blocks nothing
robots.txt is grouped by User-agent. Allow and Disallow only apply after a group starts.