Seo is Dead

  • Seo is Dead
  • SEO Beginners
  • SEO Intermediate
  • SEO Advance
  • Black Hat
  • Link Building
  • Security
  • WordPress
  • Ecommerce
  • Monetize
Home » Blog » When To ReWrite and When To ReDirect

by seoisdead Leave a Comment

When To ReWrite and When To ReDirect

Both are a small instruction in a .htaccess file, although what they do are dangerously similar, it is not the same to do a Redirect than a ReWrite. Let’s see the difference, so we know when to use one or the other.

As I said, both are written in the .htaccess file. Any request made to the server goes through this file. That means that every time we load a page, it goes through this file several times; to read the HTML, for each stylesheet, for each .js, and even for each image.

When To ReWrite and When To ReDirect

So, every time we enter a URL in the browser, it passes through the RewriteRules filters we have in the -htaccess. If it “fits” the rules we have set, the server “transforms” the URL. That doesn’t mean it redirects it to another page, it simply transforms it to another URL. In case you want to do that, you have to incorporate the [R] flag. But then… what makes it different from a Redirect?

Redirect 301

Redirect 301 is a way of telling Google that this page has moved forever. That it is no longer there, that it will now always be somewhere else, that this change will be permanent, and that from now on it is best to always go directly to the new address.

ReWrite

On the other hand, in the case of doing it with a ReWrite, we are simply “making up” the URL, so that it is prettier and better indexed by search engines. In other words, instead of something like “https://seoisdead.club/?p=423” the URL should be “https://seoisdead.club/link-building“. Much more descriptive than a parameter “p” assigning an autonumeric code.

Keep Reading this POST:  Displays STYLISH Code SNIPPETS

So, we’ll use Redirect when we’ve simply changed our site content, and we’ll use ReWrite when we want to make up the URL. The use of ReWrite as a redirect (adding the [R]) would only apply in cases where we want to apply certain special ReWriteRules, because if it is simply a redirect, there is no need to use it.

Related posts:

Change HOSTING and DOMAIN and Do Not Die Trying
53 SEO Factors you Should Know
PAGE RANK is DEAD. 3 Substitution Coefficients
Web Analytics TRICKS for All Audiences
Tutorial HOW to MODIFY The Robots.txt File

Filed Under: SEO Intermediate

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Blog

About

Privacity Polity

Cookie Policy

Site Map

    Copyright © 2023

    We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
    Cookie settingsACCEPT
    Manage consent

    Privacy Overview

    This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
    Necessary
    Always Enabled
    Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
    CookieDurationDescription
    cookielawinfo-checbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
    cookielawinfo-checbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
    cookielawinfo-checbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
    cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
    cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
    viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
    Functional
    Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
    Performance
    Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
    Analytics
    Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
    Advertisement
    Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
    Others
    Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
    SAVE & ACCEPT