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. On-Page / Site Optimization
    4. How to 301 redirect, without access to .htaccess and to a new domain

    How to 301 redirect, without access to .htaccess and to a new domain

    On-Page / Site Optimization
    4 3 3.3k
    • 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.
    • BruceA
      BruceA last edited by

      There are few ways to do this and I would like to ask other Mozzers if they have found the best way.

      We have a site .co.uk and are moving it back to .com.  However we do not have any access to the site folders for .co.uk.  (We have to move it anyway as our provider is withdrawing their service).

      We have built our URL 301 redirect file and it is ready to go, but how to impliment it?

      We can repoint .co.uk to another site, and then redirect all traffic for each URL but this is quite messy, or just forget trying to 301 each page and just rediect the whole site.
      the .com has more authority already, but we ready do not want to frustrate visitors who are using a link to reach a product, only to find they hit our homepage and not the product.

      Your thoughts would be very welcome or other ideas

      Bruce

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

        If you don't have access to .htacess, but you have access to your own code, you still can execute the redirection via PHP, with this code:

        header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.yournewwebsite.com/yournewdocumenturl"); ?>

        I would try whatever possible to redirect individual pages and not the whole site to the root domain, not just for the visitors but also for transfering your rankings to the new URLs for each page.

        1 Reply Last reply Reply Quote 0
        • Andy.Drinkwater
          Andy.Drinkwater last edited by

          Quick question Bruce - is the site built in Wordpress? If so, there are 301 plugins that you can use that are very simple to use. If you have access to the domain control panel, you can setup forwarding through that as well, but that is just for the domain. You would need to check with your hosts though, and make sure it's a 301 - it should be.

          As already mentioned by Hector, don't redirect all pages to just the root though. This is bad practice and would certainly land you in trouble.

          -Andy

          BruceA 1 Reply Last reply Reply Quote 0
          • BruceA
            BruceA @Andy.Drinkwater last edited by

            Hi Andy

            No, it is a Webstore site.  We have no access to code or to the site folders, so we cannot do anything at all with the current .co.uk site at all, but repoint it and then 301 the pages we had.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Is it better to shorten my existing url to use only keyword after domain with a 301 redirect from existing url
              mrkingsley
              mrkingsley
              2
              12
              96

            • 301 redirects. If new website is a different business does it still send link authority?
              isaac663
              isaac663
              0
              3
              134

            • Redirect www.domain to domain
              Vizergy
              Vizergy
              1
              6
              104

            • 301 redirected Duplicate Content, still showing up as duplicate after new crawl.
              Cyrus-Shepard
              Cyrus-Shepard
              0
              2
              142

            • Redoing a site - 404 redirect or 301 redirect
              danatanseo
              danatanseo
              0
              3
              536

            • Redirect sub domain to domain in .htaccessU
              rasmusbang
              rasmusbang
              0
              4
              496

            • Would it be bad to change the canonical URL to the most recent page that has duplicate content, or should we just 301 redirect to the new page?
              MeghanPrudencio
              MeghanPrudencio
              0
              7
              970

            • 301 redirect (www.domain.com/index to www.domain.com)
              StalkerB
              StalkerB
              2
              12
              16.8k

            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