Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#Architecture

Advanced CloudFront Functions Edge SEO Redirection

Customize the variables below to instantly engineer your prompt.

Required Variables

cloudfront-functions-edge-seo-redirection.txt
Act as an Edge Compute and Technical SEO Specialist. Architect a blazing-fast, sub-millisecond execution script utilizing AWS CloudFront Functions (JavaScript) explicitly designed to intercept 'Viewer Request' events for [CLOUDFRONT_DIST_ID]. The function must execute a highly optimized dictionary lookup against the massive [LEGACY_URL_MAPPING] JSON object, performing instantaneous 301 Permanent Redirects for thousands of deprecated URLs. Furthermore, program the function to algorithmically enforce strict [SEO_CANONICAL_RULES]—automatically forcing all incoming requests to lowercase, stripping trailing slashes, and removing useless marketing UTM parameters before the request ever reaches the origin cache. Prove mathematically why CloudFront Functions are drastically cheaper and faster than Lambda@Edge for this specific manipulation.

Example Text Output

"A hyper-optimized JavaScript function injected directly into the CloudFront edge nodes, ensuring legacy URLs are redirected in less than 1 millisecond and perfectly consolidating SEO link equity before hitting the origin server."

More Cloud & DevOps Prompts

View all →

Frequently Asked Questions

What is the "Advanced CloudFront Functions Edge SEO Redirection" prompt used for?

A hyper-optimized JavaScript function injected directly into the CloudFront edge nodes, ensuring legacy URLs are redirected in less than 1 millisecond and perfectly consolidating SEO link equity before hitting the origin server.

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.