Category: Apache

How to fix “Your connection to this site not fully secure” mixed contents SSL error

The error “Your connection to site is not fully secure is most often caused by mixed contents. This happens when a mixture of secure and non-secure elements is sent over the secure sever. Chrome browser flags such URLs as insecure and removes the green ssl padlock. The appearance of https:// URL perfix changes from green…
Read more

Diffrence between URL rewriting and URL redirection htaccess topic

URL rewriting and URL redirection are two different terms used to map a URL from one location to the other. These two terms often confuse new users especially when they refer to URL related queries. Some users even intermix the URL rewriting logic with URL redirection like they are talking about a particular thing with…
Read more

How to set cookies using RewriteRule in htaccess or server.config file?

Hello! In this post I will show you how we set an http cookie using a RewriteRule directive in an htaccess or server.config file. I saw many unanswered and confusing posts on StackOverflow and on other sites so I thought It would be worth writing a post that can help peope who are searching the…
Read more

How to Redirect Cloudflare non-SSL requests to SSL using RewriteRule ?

If you are hosting your domain on cloudflare CDN then one of the starngest issues you might face is Apache ssl redirection. Your normal apache htaccess http to https RewriteRule might fail to work. The reason why it fails is because your domain is on a proxy server and not on the server you are…
Read more

5 awesome htaccess copy and paste Rewrite rules with explanations

I often see people struggling with their mod-rewrite code and when they think they can’t fix the issue themselves, they either go to stackoverflow or keep scrolling the search results and hopefully ,perhaps get the solution there. URL rewriting is not as complicated as new users find it. Like other languages, URL rewriting is a…
Read more

Should you htaccess or server.config file on apache server?

Should you use htaccess or server.config file? This is a common question among many apache mod-rewrite users especially among newbies as they are curious about it. If you search this topic on google you will get hundreds of top results where experts advice you not to use htaccess. One true answer to the question can…
Read more

5 commonly used Flages in apache RewriteRule with explanations

Five commonly used Flags in Apache mod rewrite Flags play a important role in RewriteRule directive by changing its behavior. Although flags are optional in RewriteRule but we can’t rewrite an URL the way we want to do without using Flags. In this post I am going to share 5 rules that you often see…
Read more

Is restarting apache server required for htaccess rules?

Do I need to restart apache server to use RewriteRules in htaccess? New users often ask whether they should restart apache server after making changes in htaccess rules. I see a similar question being asked more and more often on question and answer sites like Stackoverflow. So I decided to write my own post that…
Read more

Site looks messy after using RewriteRule?

Sometimes when we use RewriteRule directive to shorten our urls we get into a starnge trouble. Our site looks messy as it loads without css , Javascript , images and other relative resources. This is the question I often see users posting on StackOverflow. A few years ago I answered a similar question on StackOverflow…
Read more