• 301 Redirect

    • views 1404

    Hi! I`ve combed through the entire Internet and can`t find the answer I need. Who can tell me what to do? Here`s my problem. My URL should be https://www.my-site.ru Here`s my question. Do I remove the old site from http to http: // www when going to HTTPS from www?

    Logically, when switching to HTTPS, the site with http is no longer involved in the search. The site with HTTPS is a completely different resource - do we need the the old redirect anymore? Do we need to configure 301 redirect from http to https:// www?

    1) Or do we leave the old splice from http to http:// www and make the second redirect from http to https since the www redirect already exists and automatically submits to https prefix www?

    2) Or do I do a 301 redirect with http on https and then with https on https://www -?

    What do I do? And can you write the code. Thank you in advance!!

    Also, I have the following variant.

    RewriteEngine On RewriteCond %{REQUEST_FILENAME} !robots\\\\.txt RewriteCond %{HTTPS} off RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} RewriteCond %{HTTP_HOST} !^www\\\\.(.*) RewriteRule ^(.*)$ http://www.%1/$1

    And is a gap between redirects necessary or each redirect begins with RewriteEngine On --?

    Solutions (1)
    It will be better to perform redirection from http to https, and then, if necessary, from https://example.ru to https://www.example.ru. The "RewriteEngine On" directive is prescribed just once. Each redirect directive is placed on a separate line.
We do our best for you!

Users (0) 0 of 5

Ratings of hosting providers by site tasks
Hosting price

We highly recommend not to purchase the cheapest hosting package. Usually, they come with a row of issues: the server is often down, the hardware is outdated, lousy and slow support, registration and payment errors, etc.

For your convenience, we have created a tool that can help you to choose the right hosting package for you just by answering a few simple questions.

CMS

CMS is a content management system. A lot of hosting providers offer so-called CMS optimized packages. However, this is a marketing trick because most CMSs do not have special software or hosting requirements.

Free trial

Trial period is a period of time, usually from 7 to 30 days, during which you can use the hosting services for free to test them.

Moneyback policy allows the customer to receive a refund for his order within a certain period after the purchase.

OS

OS means the operating system is installed on the server. We recommend to choose Linux hosting unless your website requires another OS.

Other

Bulletproof hosting - it’s a type of service that allows to host almost any type of content, even the restricted one (adult content, warez, spam etc). Bulletproof hosting providers do not remove your content in case someone reports an abuse.

Unlimited hosting - refers to companies that provide packages with unlimited disk space, bandwidth, number of domains, databases or email accounts, etc. This is usually a marketing trick but sometimes you can find something worth a try.

Secure hosting - it’s a type of service when the hosting provider is mostly responsible for the security of the user’s account: updates the software installed on their servers, provides an antivirus and malware scanner, firewalls and basic anti-DDoS protection, etc.

DDoS-protected hosting - companies that provide packages that include anti-DDoS protection. These packages are considerably more expensive than regular ones. Nevertheless, they’re totally worth their price because the company will ensure that your website is secured from cyber attacks.

Technologies

Most websites require MySQL and PHP installed on the server to work correctly. Almost all hosting providers support these technologies.

ASP.NET is a Microsoft web application development platform.

Control panel

The more comfortable the control panel is, the easier will it be for you to change the website and hosting account settings.

Most hosting providers that are in TOP20 in our rating offer user-friendly control panels, such as cPanel, Plesk or DirectAdmin. That’s why we recommend to pay attention to other, more important parameters, while choosing a hosting provider.

  • In order to provide you with the best online experience this website uses personal data (cookies, IP, email, photo, name, website, etc). By using our website, you agree to our use of your personal data. More info we receive some monetary compensation from hosting companies, however, this does not influence their positions in our ratings, test results, the direction or conclusions of our reviews in any way. We use this amount to provide better services, improve our website, to cover hosting testing account fees and team salaries. Ok

  • easy
    1

    NO BOTS

    We ban anonymous users since 2016
    2

    NO BRIBES

    We do not delete reviews for money
    We do not sell rating positions
    We make cheating attempts almost impossible
    3

    EXPERT ADVICE

    We test the hosting thoroughly and publish professional overviews
  • Rewards for reviews