Skip to main content

htaccess

Redirecting the site using the htaccess
Tag(s)

Redirecting the site using the htaccess

You can redirect your website to another by using RewriteRule in .htaccess.

For example:

If your website URL is example.eu, it can be redirected to another URL example.ch using htaccess.
If suppose your URL is example.eu/blog then the URL will be redirected to the same page.

The below rule have done this

RewriteCond %{HTTP_HOST} !^m\.
RewriteRule ^$ http://example.eh [R,L]

 

HTTP Authentication for specific domain in Multisite environment
I'm running a multisite Drupal installation, Drupal's multisite allows me to run different websites off the same set of PHP files, but with different databases (so different content). Like example.com, example1.com, and example2.com.
narendran Fri, 09/04/2015 - 03:10
HTTP Authentication
apache_web_server_logo

How to make Apache faster for Drupal

If you are reading this blog post you must be striving to improve the performance of your site. When we speak about performance two things should be taken into account essentially.

  1. Number of requests the site is able to serve (The more, The better)
  2. Response time per request (The least, The better)

I guess it is not much needed to stress as how essential the response time plays in deciding the success of a website. Apache the prominent Web server plays a key role in this connection.

knackforge blog knowledge base

Enabling HTTP authentication for private Drupal site

At KnackForge we try to follow best practices in all our development processes. The list includes protecting development and stage sites from unauthorized access and search engines. HTTP authentication has been the simple and prime option of our choice. The steps involved in this process is fairly minimal and depends on apache's .htaccess file. Thus needs no restart to the web server.

 

Subscribe to htaccess