Tag: Rewrite

  • HTTPS Rewrite Linux/Hosting .htaccess

    HTTPS Rewrite Linux/Hosting .htaccess

    Discussed HTTP to HTTPS rewrite rule for windows platform IIS on previous post.  If the web server as linux based environment that can be archived and play with .htaccess file.

    .htaccess file has always in hidden attribute so edit the file with vi editor

    Add the below code of mod_rewrite.c module to make http to https redirection.

    Cheers!

    Suggestion: HTTP to HTTPS rewrite rule (IIS)

  • HTTP to HTTPS rewrite rule

    Typically http to https configuration would be common as the canonical name redirect either http:// or http://www to https.  This may be the site requirement as https:// or https://www

    In our scenario, rewrite rule could be managed to https://www with canonical name.

    Whenever client end entering the URL as http://www.sathiya.io or http://sathiya.io would be automatically redirect to https://www.sathiya.io site.

    More about rewrite rule on Microsoft article

    Cheers!