Tags » Htaccess

How to redirect non-www URLs to www?

RewriteEngine On

RewriteCond %{HTTP_HOST} ^yourdomain.com

RewriteRule ^(.*)$ http://www.yourdomain.com/$1

Htaccess

Apache Common Htaccess Usage (2.2 & 2.4)

  1. Maintenance mode except subnet network.

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} !^/offline\.html$
    RewriteCond %{REMOTE_ADDR} !^10\.{1,3}\.{1,3}\.{1,3}$
    RewriteRule ^(.*)$ http://yourdomain.com/offline.html

    offline.html (store your offline messages)
  2. 18 more words
OS/application/sys Admin

Secure your Website with the HtAccess

 The HtAccess is a small and hidden file that is located in the main file directory of a website. Every website has an htaccess document by default, but if not, an htaccess document can also be self created and it will work just the same. 139 more words

Web Design

Cara Melakukan Enable Keep Alive di WordPress

Cara Melakukan Enable Keep Alive di WordPress

Diantara sekian banyak cara untuk meningkatkan kecepatan sebuah web atau blog ketika diakses, diantaranya kita harus mengaktifkan atau Enable Keep Alive. 280 more words

Artikel

Fixing a Wordpress Redirect Hack

So I got a frantic call from my BFF who said, Daniel, your Science Fiction novels are so good. Can you help me fix my website? 1,120 more words

Software

Get wp-content/uploads files from live site on localhost

While modifying clients WordPress sites I don’t download the uploads directory contents so to avoid 404s in Chrome’s Developer Tools console I modified .htaccess to redirect those URLs to the live site. Tested in a docker container.

Wordpress

Disable Directory Browsing

To disable directory browsing like http://www.tapdanceman.com/wp-content/plugins/podpress/  in WordPress all you need to do is add a single line of code in your WordPress site’s .htaccess… 11 more words

Htaccess