📖 Scenario: You are managing a website that needs to move to a new domain. You want to keep your visitors and search engine rankings safe during this change.
🎯 Goal: Build a step-by-step checklist to perform a site migration without losing traffic.
📋 What You'll Learn
Create a list of current website URLs
Add a list of new website URLs
Map old URLs to new URLs
Add final steps to complete the migration safely
💡 Why This Matters
🌍 Real World
Website owners and SEO specialists use this process to move websites to new domains without losing visitors or search engine rankings.
💼 Career
Understanding site migration is important for SEO professionals, web developers, and digital marketers to maintain website performance and visibility.
Progress0 / 4 steps
1
Create a list of current website URLs
Create a list called old_urls with these exact URLs: 'https://example.com/home', 'https://example.com/about', 'https://example.com/contact'.
SEO Fundamentals
Hint
Use square brackets to create a list and include the URLs as strings.
2
Add a list of new website URLs
Create a list called new_urls with these exact URLs: 'https://newsite.com/home', 'https://newsite.com/about', 'https://newsite.com/contact'.
SEO Fundamentals
Hint
Use the same format as old_urls but with the new domain.
3
Map old URLs to new URLs
Create a dictionary called url_mapping that maps each URL in old_urls to the corresponding URL in new_urls. Use a for loop with variables old and new to iterate over both lists simultaneously.
SEO Fundamentals
Hint
Use zip() to pair old and new URLs and add them to the dictionary.
4
Add final steps to complete the migration safely
Create a list called final_steps with these exact strings: 'Set up 301 redirects from old URLs to new URLs', 'Update sitemap with new URLs', 'Notify Google Search Console about the change'.
SEO Fundamentals
Hint
Use a list to store the final important steps for a safe migration.
Practice
(1/5)
1. What is the main purpose of using 301 redirects during a site migration?
easy
A. To temporarily block visitors from accessing the site
B. To delete old pages from the website
C. To permanently send visitors and search engines from old URLs to new URLs
D. To speed up the website loading time
Solution
Step 1: Understand what 301 redirects do
301 redirects tell browsers and search engines that a page has permanently moved to a new address.
Step 2: Identify the purpose in site migration
Using 301 redirects ensures visitors and search engines find the new pages without losing traffic or ranking.
Final Answer:
To permanently send visitors and search engines from old URLs to new URLs -> Option C
Quick Check:
301 redirect = permanent move [OK]
Hint: Remember 301 means permanent redirect, not temporary [OK]
Common Mistakes:
Confusing 301 with temporary redirects
Thinking redirects delete pages
Ignoring redirects during migration
2. Which of the following is the correct way to implement a 301 redirect in an Apache server's .htaccess file?
easy
A. Redirect 301 /old-page.html http://example.com/new-page.html
B. Redirect /old-page.html http://example.com/new-page.html
C. Redirect 302 /old-page.html http://example.com/new-page.html
D. RedirectTemp /old-page.html http://example.com/new-page.html
Solution
Step 1: Identify the correct redirect code for permanent move
301 is the code for permanent redirect; 302 is temporary.
Step 2: Check the syntax for Apache .htaccess
The correct syntax is Redirect 301 /old-page.html http://example.com/new-page.html.
Final Answer:
Redirect 301 /old-page.html http://example.com/new-page.html -> Option A
Quick Check:
301 redirect syntax = Redirect 301 [OK]
Hint: Look for 'Redirect 301' keyword in .htaccess [OK]
Common Mistakes:
Using 302 instead of 301 for permanent redirects
Wrong syntax like RedirectPermanent
Confusing temporary and permanent redirect commands
3. After migrating a website, which of the following actions will help maintain search engine traffic?
medium
A. Keep old URLs live without redirects
B. Use 301 redirects from old URLs to new URLs
C. Remove all internal links temporarily
D. Change URLs without informing search engines
Solution
Step 1: Understand the impact of redirects on traffic
301 redirects pass ranking signals and guide visitors to new URLs, preserving traffic.
Step 2: Evaluate other options
Keeping old URLs live without redirects causes duplicate content; removing internal links harms navigation; changing URLs without updates confuses search engines.
Final Answer:
Use 301 redirects from old URLs to new URLs -> Option B
Quick Check:
301 redirects preserve traffic [OK]
Hint: Always redirect old URLs to new ones with 301 [OK]
Common Mistakes:
Leaving old URLs active without redirects
Not updating internal links
Ignoring search engine notifications
4. A website migration caused a sudden drop in traffic. Which of the following is the most likely cause?
medium
A. Not updating internal links to new URLs
B. Using 301 redirects correctly
C. Informing search engines about the migration
D. Keeping the same URL structure
Solution
Step 1: Identify the impact of internal links during migration
If internal links still point to old URLs without redirects, visitors and bots get errors or confusion.
Step 2: Analyze other options
Using 301 redirects and informing search engines help maintain traffic; keeping URL structure same is usually good.
Final Answer:
Not updating internal links to new URLs -> Option A
Quick Check:
Broken internal links cause traffic loss [OK]
Hint: Check internal links point to new URLs after migration [OK]
Common Mistakes:
Assuming redirects fix internal link issues automatically
Ignoring search engine notifications
Changing URLs without redirects
5. You are migrating a large e-commerce site to a new domain. Which combination of steps best ensures no traffic loss?
hard
A. Change URLs without redirects, submit old sitemap only
B. Use 302 redirects, keep old URLs active, do not update sitemap
C. Delete old site immediately, update internal links later, no redirects
D. Use 301 redirects, update internal links, submit new sitemap to search engines
Solution
Step 1: Identify best practices for large site migration
Using 301 redirects ensures permanent URL forwarding; updating internal links helps navigation; submitting new sitemap informs search engines.
Step 2: Evaluate incorrect options
302 redirects are temporary and do not pass ranking; deleting old site without redirects causes errors; changing URLs without redirects loses traffic.
Final Answer:
Use 301 redirects, update internal links, submit new sitemap to search engines -> Option D
Quick Check:
Redirects + links + sitemap = no traffic loss [OK]
Hint: Combine redirects, links update, and sitemap submission [OK]
Common Mistakes:
Using temporary redirects instead of permanent
Not updating sitemap after migration
Deleting old URLs without redirects
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.