The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Automatically write Mass 301 redirects for csv

    Automatically write Mass 301 redirects for csv

    Technical SEO Issues
    4 2 255
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Cocoonfxmedia
      Cocoonfxmedia last edited by

      Hi Guys

      Does anyone know if there is away to write say 30 x 301 redirects in one go? I have a list from a client with old links and new links and I want to do it all at once.

      Any suggestions would be appreciate?

      1 Reply Last reply Reply Quote 0
      • SEOAndy
        SEOAndy last edited by

        both in csv?

        first col = redirect 301

        second col = old url (find and replace domain url with a space - remove the url)

        third col = new url

        save as Text (ms-dos) - jobs a good en

        Cocoonfxmedia 1 Reply Last reply Reply Quote 0
        • Cocoonfxmedia
          Cocoonfxmedia @SEOAndy last edited by

          Thks for the rapid reply.... I think my questions wasn't clear enough ;o)

          I have a csv with loads of old and new urls, I want to write the 301s in mass i.e

          |

          Old Location: www.pi-kem.co.uk

          |

          New Website Address

          \admats.html

          |

          http://pi-kem.co.uk/materials

          |

          So above to:

          RewriteCond %{HTTP_HOST} ^pi-kem.co.uk$ [OR]
          RewriteCond %{HTTP_HOST} ^www.pi-kem.co.uk$

          RewriteRule ^admats.html$ "http://pi-kem.co.uk/materials" [R=301,L]

          SEOAndy 1 Reply Last reply Reply Quote 0
          • SEOAndy
            SEOAndy @Cocoonfxmedia last edited by

            ah so you want regular expressions ?

            im confused - if regular expressions its not really mass writing - that would be as i described

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • 301 Redirects Showing As 307 Redirects
              0
              1
              64

            • 301 Redirects
              imoprojects
              imoprojects
              0
              7
              138

            • 301 redirects reverting to 302 redirects
              Devanur-Rafi
              Devanur-Rafi
              0
              6
              532

            • To 301 redirect or not to 301 redirect? duplicate content problem www.domain.com and www.domain.com/en/
              Chris-CA
              Chris-CA
              0
              5
              456

            • A script to automatically write 301 redirect rules to htaccess?
              Klarke
              Klarke
              0
              4
              799

            • Google Webmaster redirect vs 301 redirect
              lavellester
              lavellester
              0
              2
              493

            • 301 Redirect
              Paul78
              Paul78
              0
              4
              527

            • 301 Redirects
              rickdronkers
              rickdronkers
              0
              2
              937

            Get started with Moz Pro!

            Unlock the power of advanced SEO tools and data-driven insights.

            Start my free trial
            Products
            • Moz Pro
            • Moz Local
            • Moz API
            • Moz Data
            • STAT
            • Product Updates
            Moz Solutions
            • SMB Solutions
            • Agency Solutions
            • Enterprise Solutions
            • Digital Marketers
            Free SEO Tools
            • Domain Authority Checker
            • Link Explorer
            • Keyword Explorer
            • Competitive Research
            • Brand Authority Checker
            • Local Citation Checker
            • MozBar Extension
            • MozCast
            Resources
            • Blog
            • SEO Learning Center
            • Help Hub
            • Beginner's Guide to SEO
            • How-to Guides
            • Moz Academy
            • API Docs
            About Moz
            • About
            • Team
            • Careers
            • Contact
            Why Moz
            • Case Studies
            • Testimonials
            Get Involved
            • Become an Affiliate
            • MozCon
            • Webinars
            • Practical Marketer Series
            • MozPod
            Connect with us

            Contact the Help team

            Join our newsletter
            Moz logo
            © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
            • Accessibility
            • Terms of Use
            • Privacy