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. 302 redirections warnings

    302 redirections warnings

    On-Page / Site Optimization
    3 2 258
    • 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.
    • juanmiguelcr
      juanmiguelcr last edited by

      Hi there, the SEOMOZ crawler has detected some warinings related to the 302 temporary redirections. Example:

      http://www.tarifakitesurfcamp.com/tks-camp/alojamiento/ redirects to

      www.tarifakeitesurfcamp.com/error-404

      I have made some 301 redirections, located at the end of the final (inicially) and later I just moved them to the top of the file.

      The htaccess file content is:

      redirect 301 http://www.tarifakitesurfcamp.com/tks-camp/escuela/ http://www.tarifakitesurfcamp.com/gisela-pulido-escuela/
      redirect 301 http://www.tarifakitesurfcamp.com/tks-camp/cursos-kite/ http://www.tarifakitesurfcamp.com/gisela-pulido/
      redirect 301 http://www.tarifakitesurfcamp.com/tks-camp/curso-idiomas/ http://www.tarifakitesurfcamp.com/campamento-bilingue-para-ninos/
      redirect 301 http://www.tarifakitesurfcamp.com/tks-camp/programa-de-actividades/ http://www.tarifakitesurfcamp.com/kitesurf-para-ninos/
      redirect 301 http://www.tarifakitesurfcamp.com/tks-camp/alojamiento/ http://www.tarifakitesurfcamp.com/campamento-de-kitesurf/
      redirect 301 http://www.tarifakitesurfcamp.com/tks-camp/la-empresa-2/ http://www.tarifakitesurfcamp.com/kitesurf-para-ninos-tarifa/

      BEGIN ASIGNACIÓN DE TIEMPO DE CACHÉ A IMÁGNES, ARCHIVOS JSS, CSS

      <ifmodule mod_expires.c="">#activa la generacion de cabecera Expires
      ExpiresActive On
      #establece el tiempo de cache por defecto
      ExpiresDefault A604800
      <filesmatch ".(jpg|gif|png|css|ico|js)$"="">#suma 1 dia a la hora de acceso del usuario

      ExpiresDefault "access plus 7 day"</filesmatch></ifmodule>

      END ASIGNACIÓN DE TIEMPO DE CACHÉ A IMÁGNES, ARCHIVOS JSS, CSS

      BEGIN W3TC Browser Cache

      <ifmodule mod_deflate.c=""><ifmodule mod_headers.c="">Header append Vary User-Agent env=!dont-vary</ifmodule>
      AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
      <ifmodule mod_mime.c=""># DEFLATE by extension
      AddOutputFilter DEFLATE js css htm html xml</ifmodule></ifmodule>

      END W3TC Browser Cache

      BEGIN W3TC Page Cache core

      <ifmodule mod_rewrite.c="">RewriteEngine On
      RewriteBase /
      RewriteCond %{HTTP:Accept-Encoding} gzip
      RewriteRule .* - [E=W3TC_ENC:_gzip]
      RewriteCond %{REQUEST_METHOD} !=POST
      RewriteCond %{QUERY_STRING} =""
      RewriteCond %{REQUEST_URI} /$
      RewriteCond %{HTTP_COOKIE} !(comment_author|wp-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
      RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index.html%{ENV:W3TC_ENC}" -f
      RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index.html%{ENV:W3TC_ENC}" [L]</ifmodule>

      END W3TC Page Cache core

      BEGIN WordPress

      <ifmodule mod_rewrite.c="">RewriteEngine On
      RewriteBase /
      RewriteRule ^index.php$ - [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]</ifmodule>

      END WordPress

      What's wrong?

      What could happen is I maintain these 302 redirections?

      Thanks!

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

        Those 301 redirects should look like this:

        _redirect 301 /tks-camp/escuela/ http://www.tarifakitesurfcamp.com/gisela-pulido-escuela/_
        _redirect 301 /tks-camp/cursos-kite/ http://www.tarifakitesurfcamp.com/gisela-pulido/_
        _redirect 301 /tks-camp/curso-idiomas/ http://www.tarifakitesurfcamp.com/campamento-bilingue-para-ninos/_
        _redirect 301 /tks-camp/programa-de-actividades/ http://www.tarifakitesurfcamp.com/kitesurf-para-ninos/_
        _redirect 301 /tks-camp/alojamiento/ http://www.tarifakitesurfcamp.com/campamento-de-kitesurf/_
        _redirect 301 /tks-camp/la-empresa-2/ http://www.tarifakitesurfcamp.com/kitesurf-para-ninos-tarifa/_

        So, what is being redirected doesn't need http://www.tarifakitesurfcamp.com

        Paste what's italicized in your .htaccess and test again. 🙂

        juanmiguelcr 1 Reply Last reply Reply Quote 1
        • juanmiguelcr
          juanmiguelcr @Robert_G last edited by

          ok Thanks!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Alot of 302 Redirects, what to do?
            petmkt
            petmkt
            0
            5
            75

          • SERP Hijacking/Content Theft/ 302 Redirect?
            SneakerFiles
            SneakerFiles
            0
            4
            577

          • Redirecting deleted posts 301 vs 302
            redfishking
            redfishking
            0
            6
            614

          • 302 redirect (temporary redirect)
            Shanaki
            Shanaki
            0
            8
            1.4k

          • Redirect
            VillasDiani
            VillasDiani
            0
            6
            68

          • Temporary Redirect Warnings
            UnderMe
            UnderMe
            0
            4
            235

          • Trying to maintain rank while switching back & forth from sitewide 301 to 302 redirects?
            0
            1
            446

          • 302 (Temporary Redirect) up and growing, how to fix?
            Cyrus-Shepard
            Cyrus-Shepard
            0
            5
            2.7k

          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