Tag: htaccess

  • Redirect Old Domain to New Domain

    How to redirect old domain to new domain through .htaccess? You should add this code in .htaccess file Method no 1 Method no 2

  • Redirect certain pages from http to https with .htaccess

    The following trick is useful for E-Commerce sites.  We only need few pages redirected to https to secure transaction This will automatically rewrite the url to https as long as the page is not already an https link. This conditional keeps it from causing a loop. It’s very handy to have this capabilit thus allowing […]

  • Moving WordPress blog from a subdomain to a subfolder

    I had this blog and this main site on same domain, pixert.com a year ago. I got high traffic to same domain. I separated the blog from main site after serious problems occurred. I made pixert.com/blog for blog and pixert.com for main site That’s a mistake I should  not done. Most startups have their blog […]

  • Web Page Compression: Enable gzip Encoding and Caching

    Website load is one factor Google been considered to rank websites in their search engine. The next tutorial explain a step to improve loading time in your website. This step is focusing on gzip encoding and caching, it compress the content from your server to the client browser. The reduced file size is what speeds up […]

  • Hide the Apache Web Server Version number

    There are two config directives that controls Apache version. The ServerSignature directive adds a line containing the Apache HTTP Server server version and the ServerName to any server-generated documents, such as error messages sent back to clients. The ServerTokens directive controls whether Server response header field which is sent back to clients includes a description of the […]

  • How to disable directory browsing?

    One of the must do on setting a secure Apache webserver is to disable directory browsing. This could prevent the server from showing a listing of the existing files if there’s no index in one folder. Disable directory browsing via .htaccess Add in the .htaccess file the following