The scenario is as follows. Client is having a website mydomain.com which is the primary domain of the cpanel account. Now the user want to redirect all the traffic coming to the current document root (/home/username/public_html) to the new_folder created (/home/username/public_html/new_folder/) for the site. 152 more words
Tags » Htaccess
During some redesign projects it’s handy to have the images (other media) rendered, but sometimes it could be a struggle to download from specific paths. 30 more words
Apache SetEnvIf module doesn’t support logical conditions, like OR & AND.
To emulate a SetEnvIf logical AND:
CustomLog /var/log/apache2/loopback_posts.log combined env=posting_myself SetEnvIf Remote_Addr "^" loopback_ip=0 SetEnvIf Remote_Addr "^127\.0\.0\.1$" loopback_ip=1 SetEnvIf Request_Method "POST" posting_myself SetEnvIf loopback_ip 0 !posting_myself … 30 more words