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. What are the impact of doing URL Rewriting instead of 301 redirections whille optimizing a blog?

    What are the impact of doing URL Rewriting instead of 301 redirections whille optimizing a blog?

    Technical SEO Issues
    4 3 1.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.
    • webit40
      webit40 last edited by

      In WordPress, with the ALL In ONE SEO pluggingm we've optimze the permalinks to show more keewords in the URL'. What can be the impact?

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

        I'm not 100% familiar with all that ALL IN ONE SEO PACK is doing there, but usually when you use mod_rewrite (most commonly that I've seen amongst SEO's to rewrite to 'www'), it IS a 301 redirect.

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

          Hi Alexandre,

          You will need to look at the code in the .htaccess file generated by All in One SEO to see whether the plugin is just using URL rewriting or creating 301 redirects. As far as I am aware, that particular plugin does not have an option to manually stipulate when you wish to create a 301, but the only sure way is to check the code.

          You will need to go into your wordpress /blog directory and download the .htaccess file, then open it in a text editor (like notepad). This is a separate .htaccess file, specifically relating to what happens within your wordpress installation.The one in the root folder for your site will not tell you what you are wanting to know.

          I don't use All In One SEO as I prefer the Yoast plugin, but typically, what you might expect to see is code that looks something like this:

          BEGIN WordPress

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

          END WordPress

          The key to identifying whether the plugin is using standard URL rewrites or creating a 301 Redirect is to look at the very last part of the Rule - the part that is enclosed in square brackets [ ]

          A plain vanilla flavored standard URL Rewrite Rule will end with [L]

          If the Rule is creating a 301 (Permanent) Redirect, it will end with [R=301,L]

          and for a 302 (Temporary) Redirect, it will end with [R=302,L]

          As far as your question, which I understand to be asking essentially, "what is the difference" between the two:

          • A standard URL Rewrite is simply instructing the server that any request for a certain URL  should be served a different URL. As far as the search engine is concerned, nothing changes. It is simply used to change the ugly URL to a pretty URL (in your case one that contains the keywords you want).

          • A 301 redirect serves the alternative URL, but also sends a signal to the search engine that the URL requested has been permanently replaced with the one that is served. This indicates to the search engine that the requested URL should be removed from the index and replaced with the URL that is served. A 301 redirect also signals to the search engine that most of the link value being passed to the requested URL should now be passed to the URL that replaces it in the index.

          Hope that helps,

          Sha

          1 Reply Last reply Reply Quote 1
          • ShaMenz
            ShaMenz last edited by

            Hi Alexandre,

            You will need to look at the code in the .htaccess file generated by All in One SEO to see whether the plugin is just using URL rewriting or creating 301 redirects. As far as I am aware, that particular plugin does not have an option to manually stipulate when you wish to create a 301, but the only sure way is to check the code.

            You will need to go into your wordpress /blog directory and download the .htaccess file, then open it in a text editor (like notepad). This is a separate .htaccess file, specifically relating to what happens within your wordpress installation.The one in the root folder for your site will not tell you what you are wanting to know.

            I don't use All In One SEO as I prefer the Yoast plugin, but typically, what you might expect to see is code that looks something like this:

            BEGIN WordPress

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

            END WordPress

            The key to identifying whether the plugin is using standard URL rewrites or creating a 301 Redirect is to look at the very last part of the Rule - the part that is enclosed in square brackets [ ]

            A plain vanilla flavored standard URL Rewrite Rule will end with [L]

            If the Rule is creating a 301 (Permanent) Redirect, it will end with [R=301,L]

            and for a 302 (Temporary) Redirect, it will end with [R=302,L]

            As far as your question, which I understand to be asking essentially, "what is the difference" between the two:

            • A standard URL Rewrite is simply instructing the server that any request for a certain URL  should be served a different URL. As far as the search engine is concerned, nothing changes. It is simply used to change the ugly URL to a pretty URL (in your case one that contains the keywords you want).

            • A 301 redirect serves the alternative URL, but also sends a signal to the search engine that the URL requested has been permanently replaced with the one that is served. This indicates to the search engine that the requested URL should be removed from the index and replaced with the URL that is served. A 301 redirect also signals to the search engine that most of the link value being passed to the requested URL should now be passed to the URL that replaces it in the index.

            Hope that helps,

            Sha

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • 301 redirects for all urls - legal dispute
              Hurf
              Hurf
              0
              2
              64

            • Redirect URLS with 301 twice
              KeriMorgret
              KeriMorgret
              0
              5
              1.5k

            • Redirect a 301 Redirect
              RedCaffeine
              RedCaffeine
              0
              5
              98

            • Ideally should a 301 or 302 redirect be used from https://www.site.com to http://www.site.com? Is there a valid reason to use a 302 in this situation or would using a 301 have any negative impact on seo?
              Unity
              Unity
              0
              2
              317

            • 301 Redirecting weird URLs with % in them
              Jinx14678
              Jinx14678
              0
              4
              989

            • 301 Redirect Domain or 301 Redirect Domain + Interior Pages
              Room214
              Room214
              0
              7
              1.1k

            • Trailing Slashes In Url use Canonical Url or 301 Redirect?
              RyanKent
              RyanKent
              0
              7
              2.7k

            • Difference between URL Rewrites and 301 Redirects for Rankings
              Gaveltek-173238
              Gaveltek-173238
              0
              4
              570

            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