SlideShare a Scribd company logo
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
@chrisgreen87
@StrategiQ
.htaccess Hell
Managing a Migration When There’s
No Easy Answer
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
A site migration
Possibly the most important moment in a
website’s life-cycle
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
A site migration
Possibly the most important moment in a
website’s life-cycle
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Done well, a new site can launch without
hitch
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Done badly, all your hard work will go
down the
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
On small sites this can be really easy
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
On small sites this can be really easy
On large sites... ?
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
That doesn’t mean you can just
shrug it off
(don’t be lazy)
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
It’s make or break for your new
website
(I really mean it, don’t be lazy)
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
In this presentation I’ll show
you
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
How to scope the size of the
redirect challenge
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
How to prioritise redirects
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Tactics to help map them
(less painfully - at least)
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
“Best-case” matching when
there’s no exact
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Testing redirects pre & post
launch
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Keeping organised
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Scoping the size of the redirect
trouble
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
1) Crawl your website
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
1) Crawl your website
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
2) Crawl any sitemaps
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
3) Export landing page
URLs from GA
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
If the 5,000 row limit is too much of a pain -
try http://bit.ly/analytics-edge
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
4) Extract URLs from
logs
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
4) Extract URLs from
logs
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Or maybe you can be adventurous and use
command line
This resource rocks, thanks Oliver Mason!-> http://bit.ly/log-command-line
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
5) Scrape Google
(but be nice)
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
“But wait, this sounds a right faff!”
(I thought I told you not to be lazy)
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Prioritising redirects
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
1) Common-sense - top level
pages
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
2) Top-ranking pages
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
3) Top trafficked pages
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
4) Most crawled pages
(from log files)
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
5) … and if possible
everything else
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Mapping redirects
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
1) Directory rewrites
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
In .htaccess for example:
RewriteRule ^old-blog/(.*)$ /new-blog/$1 [R=301,NC,L]
www.domain.com/old-blog/best-post-evar
301s to
www.domain.com/new-blog/best-post-evar
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Some more handy .htaccess rules?
http://bit.ly/aleyda-htaccess
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
That’s the easy part over and done with!
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
2) Old-to-new post/
product matching
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Can be done in many different ways - depends on commonalities:
- Post/Product ID
- Post/Product Name
- Post/Product Title
- URL Key Matching
etc...
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
For example:
http://bit.ly/ecom-redirect-drive
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Make friends with a developer
(Seriously - buy them a drink and everything!)
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
But that’s not a get out of jail free card!
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
3) Manually match them
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
This is up to you to do the hard work…
Filters are your friend too
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Filter your URLs, look for:
- Specific keywords
- Directories
- Parameters
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
“Best case” matching
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
1) Don’t just over-redirect to
the homepage or top-level
categories
(This leads into soft 404s!)
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Don’t just take my word for it
Ask Glenn Gabe
http://bit.ly/soft-404s
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
2) Match to the closest
available example
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
3) If there’s no suitable
alternative, don’t be afraid to
let it drop
(if it’s important and there’s no alternative, you’re
doing it wrong!)
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Redirect implementation?
Assuming that you’re using apache -
http://bit.ly/htaccess-for-seos
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Redirect testing
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
1) Modify redirects to
“work” on staging/dev
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Change the hostname to
dev/staging
(change back before launch though!)
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
2) Crawl, crawl & crawl
again!
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Change host on your old
list of redirects & crawl
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Pro tip:
Just because there’s a 301 response,
doesn’t mean it’s the right destination!
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
3) Test again after
launch
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Make sure nothing breaks after!
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Keeping organised
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
1) Excel/google docs is your
friend
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
2) Include 301 mapping into
your sitemap - start early!
http://bit.ly/sitemap-redirect-template
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
3) Learn to Vlookup!
http://bit.ly/vlookup-beginners
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
4) Save often, split your
workbook if things get too
heavy
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
To recap...
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
It takes time but it’s worth it!
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Properly scope the size of the problem
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Prioritise - more is better, but it has to
stop somewhere
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Map redirects intelligently - pattern or
directory match where you can
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Make friends with a developer!
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Test, test & test again
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Download this, it’ll help
http://bit.ly/sitemap-redirect-template
@chrisgreen87
@StrategiQ
#BrightonSEO
2nd September 2016
Thank you.
@chrisgreen87
http://bit.ly/htaccess-hell

More Related Content

PPTX
SEO - Moving the dial #BrightonSEO - September 2016
PDF
Telling the Story of Your Content - SAScon 2016
PDF
Stop best practicing, start doing - Stephen Kenwright at #SearchLeeds 2016
PDF
Darren Shaw - Mozcon 2019 - From Zero to Local Ranking Hero
PPTX
Automating SEO on large websites #BrightonSEO
PDF
Next Generation Structured Data
PPTX
How Agile Technical SEO Can Add Value To Your SEO Campaign, by Adam Gent
PPTX
Using causal Inference to better understand the search intent
SEO - Moving the dial #BrightonSEO - September 2016
Telling the Story of Your Content - SAScon 2016
Stop best practicing, start doing - Stephen Kenwright at #SearchLeeds 2016
Darren Shaw - Mozcon 2019 - From Zero to Local Ranking Hero
Automating SEO on large websites #BrightonSEO
Next Generation Structured Data
How Agile Technical SEO Can Add Value To Your SEO Campaign, by Adam Gent
Using causal Inference to better understand the search intent

What's hot (20)

PPTX
Keywords Aren't Dead. Debunking SEO Myths. Brighton SEO 2016
PPTX
BrightonSEO Summer 2021 - The Underrated Value of Internal Links
PDF
SMX Advanced 2015 - Semantic Entities
PDF
Under the Hood with Social Metadata - SEMpdx Feb 2014
PDF
Brighton SEO - September 2016
PDF
Link Building Reporting
PPTX
How to Generate Content that Builds it's Own Links
PPTX
The one about content marketing (Brighton SEO 2021)
PPTX
Making Memories: Creating Content People Remember (MozCon 2019)
PDF
Link Building SMX Advanced 2013
PPTX
How to get local links (and why you need them) - Brighton SEO Pitchbox Summit
PDF
[Brighton SEO] Audience Intelligence & SEO: How to integrate data sources to ...
PDF
How to Improve Your Website's Indexation - Sean Butcher Brighton SEO Present...
PPTX
Getting your audience to create your content for you
PPTX
BrightonSeo - 5 Trends shaping the Future of Local Search - Sept 2016
PPTX
BrightonSEO 2018 - How to Tighten up Your SEO on Large Websites
PDF
Link building in 2021 (when you're a bit crap at PR) #brightonseo
PDF
Darren Shaw - BrightonSEO 2019 - Can You Rank in Local Without a Website?
PDF
How To Build Links To Product Pages Without Looking Like A Spammer | Brighton...
PPTX
SEO Myths - how damaging by Chris Green
Keywords Aren't Dead. Debunking SEO Myths. Brighton SEO 2016
BrightonSEO Summer 2021 - The Underrated Value of Internal Links
SMX Advanced 2015 - Semantic Entities
Under the Hood with Social Metadata - SEMpdx Feb 2014
Brighton SEO - September 2016
Link Building Reporting
How to Generate Content that Builds it's Own Links
The one about content marketing (Brighton SEO 2021)
Making Memories: Creating Content People Remember (MozCon 2019)
Link Building SMX Advanced 2013
How to get local links (and why you need them) - Brighton SEO Pitchbox Summit
[Brighton SEO] Audience Intelligence & SEO: How to integrate data sources to ...
How to Improve Your Website's Indexation - Sean Butcher Brighton SEO Present...
Getting your audience to create your content for you
BrightonSeo - 5 Trends shaping the Future of Local Search - Sept 2016
BrightonSEO 2018 - How to Tighten up Your SEO on Large Websites
Link building in 2021 (when you're a bit crap at PR) #brightonseo
Darren Shaw - BrightonSEO 2019 - Can You Rank in Local Without a Website?
How To Build Links To Product Pages Without Looking Like A Spammer | Brighton...
SEO Myths - how damaging by Chris Green
Ad

Viewers also liked (20)

PDF
How HTTP/2 will change the web as we know it
PPTX
SEO & Civil Law: Protecting Yourself from Unfortunate Client Disputes | brigh...
PDF
Humanising Search - Jimisha Thakrar
PPTX
BrightonSEO 5 Critical Questions Your Log Files Can Answer September 2016
PDF
How Changing Your Mind can increase Successs #BrightonSEO 2016
PPTX
How Do You Put a Price on Digital Content?
PPTX
Why local search should be part of your e-commerce strategy
PDF
Art, virtual snowballs and the feels - BrightonSEO
PDF
15 Strategies to Avoid Being Reputation Roadkill, by Andy Beal
PDF
Building Viral Web Toys at Lightning Speed
PPTX
BrightonSEO - How to create an international blog to boost your SEO
PPTX
Do CTR's Really Affect Organic Rankings?
PPTX
BrightonSeo - ecommerce seo pitfalls by Dave Naylor
PPTX
How to Build Business Cases for SEO Fixes
PPTX
Analytics 360 suite: Is it a game changer?
PDF
How to be a Facebook Advert Superhero
PDF
How to Drive Growth through your SEO Audits at #BrightonSEO
PDF
Lessons from Link Building in 2009 that Apply Today by @staceycav at #brighto...
PDF
SEO split tests you should run - Will Critchlow
PDF
Bas van den Beld - The Psychology Behind The Content - Brighton SEO 2016
How HTTP/2 will change the web as we know it
SEO & Civil Law: Protecting Yourself from Unfortunate Client Disputes | brigh...
Humanising Search - Jimisha Thakrar
BrightonSEO 5 Critical Questions Your Log Files Can Answer September 2016
How Changing Your Mind can increase Successs #BrightonSEO 2016
How Do You Put a Price on Digital Content?
Why local search should be part of your e-commerce strategy
Art, virtual snowballs and the feels - BrightonSEO
15 Strategies to Avoid Being Reputation Roadkill, by Andy Beal
Building Viral Web Toys at Lightning Speed
BrightonSEO - How to create an international blog to boost your SEO
Do CTR's Really Affect Organic Rankings?
BrightonSeo - ecommerce seo pitfalls by Dave Naylor
How to Build Business Cases for SEO Fixes
Analytics 360 suite: Is it a game changer?
How to be a Facebook Advert Superhero
How to Drive Growth through your SEO Audits at #BrightonSEO
Lessons from Link Building in 2009 that Apply Today by @staceycav at #brighto...
SEO split tests you should run - Will Critchlow
Bas van den Beld - The Psychology Behind The Content - Brighton SEO 2016
Ad

Similar to Htaccess Hell - BrightonSEO 2016 (20)

PDF
Site migrations | Brighton SEO 2019
PDF
Migration Best Practices - SEOkomm 2018
PPTX
SEARCH Y - Bastian Grimm - Migrations Best Practices
PPTX
Big Site Migrations- Michal Magdziarz, CEO of DeepCrawl
PDF
Migration Best Practices - Search Y 2019, Paris
PPTX
Essential Technical SEO learnings from 120+ site migrations
PPTX
Migration Best Practices - Peak Ace on Air
PDF
Site Migrations by Nik Ranger
PDF
SearchLeeds 2018 - Steve Chambers - Stickyeyes - How not to F**K up a Migration
PDF
Common SEO Mistakes During Site Relaunches, Redesigns, Migrations (2018)
PDF
BrightonSEO 2017 - SEO quick wins from a technical check
PDF
Website Migration SEO: Advanced Migration Strategy & Analysis
PDF
Migrations are Messy | Digital Summit Washington, DC
PDF
Website Architecture and Site Migration Guide (2015)
PPTX
Omi sido-beyond-the-basics-of-website-migration.pptx
PPTX
SEO 101 - Google Search Console Explained
PDF
Site Redesign & Migration
PDF
Prioritising Impactful SEO Tasks
PDF
An SEO's Guide to Website Migrations
PDF
Migration Best Practices - SMX London 2018
Site migrations | Brighton SEO 2019
Migration Best Practices - SEOkomm 2018
SEARCH Y - Bastian Grimm - Migrations Best Practices
Big Site Migrations- Michal Magdziarz, CEO of DeepCrawl
Migration Best Practices - Search Y 2019, Paris
Essential Technical SEO learnings from 120+ site migrations
Migration Best Practices - Peak Ace on Air
Site Migrations by Nik Ranger
SearchLeeds 2018 - Steve Chambers - Stickyeyes - How not to F**K up a Migration
Common SEO Mistakes During Site Relaunches, Redesigns, Migrations (2018)
BrightonSEO 2017 - SEO quick wins from a technical check
Website Migration SEO: Advanced Migration Strategy & Analysis
Migrations are Messy | Digital Summit Washington, DC
Website Architecture and Site Migration Guide (2015)
Omi sido-beyond-the-basics-of-website-migration.pptx
SEO 101 - Google Search Console Explained
Site Redesign & Migration
Prioritising Impactful SEO Tasks
An SEO's Guide to Website Migrations
Migration Best Practices - SMX London 2018

More from Chris Green (10)

PDF
How to construct your own SEO a b split tests (for free) - BrightonSEO July 2021
PDF
Methods of Testing Internal Linking with Chris green
PDF
The SERP Whisperer - Turn Digi 2020
PPTX
State of Digital 2018 - Why SEO "Sticking Plasters" Aren't the Enemy
PPTX
Dos donts of js content optimisation - Digital Olympus 2018
PDF
Robots: Txt, Meta & X - The Snog, Marry & Avoid of the Web Crawling World - B...
PDF
What is Rank Tracking and Do We Recognise it Anymore? - Search London 2017
PDF
Metric Misuse
PDF
Cannibal Content - Stop Your Website From Eating Itself | Brighton SEO 2015
PDF
Death of Page One Position One - The Fragmentation of Search
How to construct your own SEO a b split tests (for free) - BrightonSEO July 2021
Methods of Testing Internal Linking with Chris green
The SERP Whisperer - Turn Digi 2020
State of Digital 2018 - Why SEO "Sticking Plasters" Aren't the Enemy
Dos donts of js content optimisation - Digital Olympus 2018
Robots: Txt, Meta & X - The Snog, Marry & Avoid of the Web Crawling World - B...
What is Rank Tracking and Do We Recognise it Anymore? - Search London 2017
Metric Misuse
Cannibal Content - Stop Your Website From Eating Itself | Brighton SEO 2015
Death of Page One Position One - The Fragmentation of Search

Recently uploaded (20)

PPTX
Sumit Saxena IIM J Project Market segmentation.pptx
PDF
How the Minnesota Vikings Used Community to Drive 170% Growth and Acquire 34K...
PDF
Ramjilal Ramsaroop || Trending Branding
PDF
Digital Marketing in the Age of AI: What CEOs Need to Know - Jennifer Apy, Ch...
PPTX
Ranking a Webpage with SEO (And Tracking It with the Right Attribution Type a...
PDF
UNIT 1 -4 Profile of Rural Consumers (1).pdf
PPTX
Fixing-AI-Hallucinations-The-NeuroRanktm-Approach.pptx
PDF
UNIT 1 -3 Factors Influencing RURAL CONSUMER BEHAVIOUR.pdf
PDF
Mastering Content Strategy in 2025 ss.pdf
PDF
UNIT 2 - 5 DISTRIBUTION IN RURAL MARKETS.pdf
PPTX
Your score increases as you pick a category, fill out a long description and ...
PPTX
The evolution of the internet - its impacts on consumers
PDF
Prove and Prioritize Profitability in Every Marketing Campaign - Zach Sherrod...
PDF
exceptionalinsights.group visitor traffic statistics 08-08-25
PDF
Mastering the Art of the Prompt - Brantley Smith, HomePro Marketing
PPTX
Solomon_Chapter 6_The Self: Mind, Gender, and Body.pptx
PDF
E_Book_Customer_Relation_Management_0.pdf
PPTX
Best Digital marketing service provider in Chandigarh.pptx
PDF
Fly Emirates SEO case study by Rakesh pathak.pdf
PDF
Modernizing IT for the age of AI - Jason Aloia, Freshworks
Sumit Saxena IIM J Project Market segmentation.pptx
How the Minnesota Vikings Used Community to Drive 170% Growth and Acquire 34K...
Ramjilal Ramsaroop || Trending Branding
Digital Marketing in the Age of AI: What CEOs Need to Know - Jennifer Apy, Ch...
Ranking a Webpage with SEO (And Tracking It with the Right Attribution Type a...
UNIT 1 -4 Profile of Rural Consumers (1).pdf
Fixing-AI-Hallucinations-The-NeuroRanktm-Approach.pptx
UNIT 1 -3 Factors Influencing RURAL CONSUMER BEHAVIOUR.pdf
Mastering Content Strategy in 2025 ss.pdf
UNIT 2 - 5 DISTRIBUTION IN RURAL MARKETS.pdf
Your score increases as you pick a category, fill out a long description and ...
The evolution of the internet - its impacts on consumers
Prove and Prioritize Profitability in Every Marketing Campaign - Zach Sherrod...
exceptionalinsights.group visitor traffic statistics 08-08-25
Mastering the Art of the Prompt - Brantley Smith, HomePro Marketing
Solomon_Chapter 6_The Self: Mind, Gender, and Body.pptx
E_Book_Customer_Relation_Management_0.pdf
Best Digital marketing service provider in Chandigarh.pptx
Fly Emirates SEO case study by Rakesh pathak.pdf
Modernizing IT for the age of AI - Jason Aloia, Freshworks

Htaccess Hell - BrightonSEO 2016