Viewing 1 to 6 of 6 items
Archive | .htaccess RSS feed for this section


How to point your domain’s URL to a sub-folder in wordpress

Suppose you have a WordPress site that changes periodically, like it’s changing every year and you want to install each year’s version of the site to a sub-folder (such as /2014, /2015, /2016 etc). Also, you need to have the original domain ( automatically redirect to a particular sub-folder (usually the latest). Yes, you have  Full Article…


Apache Redirection With Masking (Without changing the Url)

Linux Server administrators frequently come across requirements from clients such that they want to redirect their site to another URL WITHOUT changing URL, this can be done by adding a rule in .htaccess file. We can setup redirection for a domain without changing the url in the browser. For that open your .htaccess file and  Full Article…


htpassword protected directory

Any sensitive directory inside the linux server have to be password protected or the sensitive datas might get lost. The most secure way of protecting a web folder is to use htaccess and htpassword. If you are a beginner, we recommend using the cPanel Password Protect Directory icon. That icon can only protect all the  Full Article…


.htaccess restrictions for Magento Installs

Contents/HOME/$USER/PUBLIC_HTML/.HTACCESS/HOME/$USER/PUBLIC_HTML/MEDIA/.HTACCESS   If you installed Magento with Softaculous, then the necessary .htaccess modifications will have already been applied to your site. But if you install Magento manually, then you will need to make the changes as described below. Paths are given as /home/$USER/public_html/ where USER is your cPanel username. If your Magento install is located  Full Article…


.htaccess options and symlink settings

.htaccess options and symlinks are restricted on most of the shared servers for security reasons. The allowed options are following: Options +SymLinksIfOwnerMatch The above restricts symlinks to links within a cPanel account (owner = cPanel user) 500 INTERNAL SERVER ERRORS Please do not use the following settings – these will lead to a 500 Internal  Full Article…


.htaccess mod_rewrite snippets

Redirect all parked domains onto main domain with https RewriteEngine on RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} ^www\.domain\.co\.uk$ [OR] RewriteCond %{HTTP_HOST} ^http://www\.domain\.co\.uk$ [OR] RewriteCond %{HTTP_HOST} !^www\.domain\.co\.uk$ [OR] RewriteRule ^(.*)$$1 [R=301,L] Redirect all parked domains onto main domain # Force all traffic onto one domain with www (will redirect all aliases) RewriteEngine on RewriteCond %{HTTP_HOST} !^$  Full Article…