There could be 10 different reasons to have a specific pattern of domain name considering brand value, technical architecture, personal liking, search engine optimizations, etc. And you might encounter a requirement of http redirections where you may need to do add/edit the htaccess of your webserver.
Understand, this blog is just to help you achieve the results and not about explaining each bit of code.
Prerequisites
- This tutorial assumes that you have enough technical knowledge about setting up a website on apache.
- If you are using Linux make sure you have superuser privileges, i.e. sudo or root, on the server that is running Apache.
- It is assumed that you have Apache installed.
- You must be able to add records to the DNS that is managing your domain. If you do not already have a domain, you may purchase one from a domain registrar, and manage it with the registrar’s DNS.
- Enable Rewrite Module: In order to perform the 301 redirect, we will use the Apache mod_rewrite, or Rewrite, module. Doing so will ensure that your users can access your site with or without the www. prefix, and be redirected to the domain that you prefer.
- Created an .htaccess file on the web server root folder for http redirections.
Apache htaccess configurations for http redirections from www to non-www and vice-versa with https options on/off.
If you are reading this post, it means you are technical enough to understand about this topic. So let me quickly jump to specific solutions to different requirements:
Condition 1: To get www without https
Example:
- http://example.com ⇨ http://www.example.com
- https://example.com ⇨ http://www.example.com
- https://www.example.com ⇨ http://www.example.com
Result: http://www.example.com
Continue reading Configuring redirections with apache htaccess for www, non-www, http and https | All patterns →
World knows how to be cruel and becomes more cruel when you have no answers in adverse situations. For product companies, this is no myth. You should consider this article as a guide for startup companies running internet business who face a lot of post launch risk due to inefficient server infrastructure plan.
NOTE: This article does not belong to big data administrators and developers who are working with distributed systems, Hadoop, Hbase or other such technologies.
Businesses run with high inspirations and on huge costs. Even the smaller setups need to maintain a lot of trust and breakthrough service so that customers can be pleased. When a business is starting on pre-defined rules everything goes smoothly as planned. However one’s the business multiplies or let’s say the traffic on website or application increases, uncertainties creates doom days for stakeholders.
If you are reading this article I assume you to be a business owner or a product manager or a product developer who knows how an internet business works and the meaning of an internet product.
Continue reading Post Launch Challenges: A guide for startup companies to minimize risk with server infrastructure plan →
Ubuntu is beautiful. Too sexy to use with full power of GUI and terminal. I am a person who drives from Windows to Linux and the experience with Ubuntu is fabulous.
I have a checklist of 60 such applications that I always need to have o my system without fail. There are kind of my heart packages, and I have finally made my own UBUNTU custom disc which installs all these packages once for all together 🙂
Programming and Development Environment
- Git
- Apache, PHP, Mysql, Python, PIP, SetupTools, Django, VirtualEnv, Node.js, hadoop, mongodb
- Java
- Ubuntu SDK
Continue reading 60 Apps and things my Ubuntu system must have →
Building Sustainable World 🌱 with Technology | AIML, IoT, Big Data, Digital Transformation | 𝗧𝘂𝗻𝗲 𝘁𝗼 𝗺𝘆 𝗦𝗽𝗼𝘁𝗶𝗳𝘆 and 𝗔𝗽𝗽𝗹𝗲 𝗣𝗼𝗱𝗰𝗮𝘀𝘁 𝗼𝗻 𝗖𝗹𝗶𝗺𝗮𝘁𝗲 𝗖𝗵𝗮𝗻𝗴𝗲 ⛈