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. Temperary redirects

    Temperary redirects

    On-Page / Site Optimization
    4 4 192
    • 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.
    • clickit2getwithit
      clickit2getwithit last edited by

      I have a problem with temp redirects, I have a dating site and the redirects happen when guests on the site are prompted to purchase a subscription while trying gain access to the sites contents. I was told to change them to 301 redirects but don't know how. any help, thanks guys.

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

        It's a bit difficult to provide an exact answer since I don't know how your site is configured, what kind of server you are on or what your goals are, but I will try answer your question about how to change temporary redirects to 301 permanent redirects.

        If you have a Linux/Apache/PHP server, you can configure sitewide redirects within the .htaccess file. Here is a useful tool for creating .htaccess 301 redirects - http://www.htaccessredirect.net/

        If you want to handle the redirects on a page by page basis, you can also do so using PHP.

        Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.new-url.com" ); ?>

        Here is a good primer for how to set up 301 redirects if you are not able to set them up with .htaccess or PHP - http://www.webconfs.com/how-to-redirect-a-webpage.php

        Also, for SEO, it is critical to the search engines that 301 permanent redirects are used instead of 302 temporary redirects in most cases. You can use this tool to test if your redirects are working correctly - http://www.internetofficer.com/seo-tool/redirect-check/

        Let me know if you need any additional assistance.

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

          It would depend on exactly how you're doing this, but to me this doesn't sound like a situation for a permanent redirects.  Permanent redirects will be cached by browsers, meaning if someone goes to a profile page, gets the message, logs in, and goes back to that profile page URL, they may still get redirected to the log in page.  I'd be very careful with this.

          This sounds like an ideal situation for temporary 302 redirects.  Having 301s pass whatever link juice these profile pages have to a log in page doesn't sound very substantial to me.  You're probably not trying to get the log in page to rank in Google, and I doubt these profile pages that can only be accessed when a user is logged in are getting a ton of links?

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

            Hello,

            301's are done in the htaccess file of your server/where your website files are located.

            All the best 🙂

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Redirect question
              NappyValleyNet
              NappyValleyNet
              0
              4
              177

            • Should I Redirect My Subdomain Or Not?
              Japracool
              Japracool
              0
              5
              118

            • To redirect or not to redirect...That is the question
              EGOL
              EGOL
              0
              3
              189

            • How to do this 301 redirection
              AndieF
              AndieF
              0
              3
              111

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

            • Which redirect to use when redirecting to https page from http page
              AlanBleiweiss
              AlanBleiweiss
              0
              2
              302

            • Www redirect
              thomasfasting
              thomasfasting
              0
              4
              337

            • How do I do a 301 Redirect in IIS 7 from http://www.freightmonster.com/index.html to http://freightmonster.com/index.html when I don't have a physical page to redirect?
              EricaMcGillivray
              EricaMcGillivray
              0
              4
              1.0k

            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