.htaccess
Block Proxy Server via .htaccess
I was working for a website in which client is getting span emails and he want some solid solution to stop this. We have tried with Blocking IP Address using .htaccess but Hackers were using Proxy server. As a result, IP Address will change every time and previous solution did not work. Finally I wrote .htaccess code again for blocking proxy server.
How to Block IP Address using .htaccess
Are you looking to block some IP address using .htaccess? If you are finding some IP address which you want to block and restrict access of your site, you can do the same using .htaccess. This is one of the good way to keep your site safe by blocking IP Address via .htaccess.
[.htaccess] How to show .htaccess file in FireFTP
If you are using FireFTP than you are not able to view .htaccess file when you connect to ftp. .htaccess is invisible in FireFTP by default. You have to enable it in order to display it in the listing. .htaccess is hidden file and FireFTP make it invisible.
[.htaccess] How to turn off magic quotes
Are you looking for a solution to turn off the magic quotes using .htaccess ? If you work on local than you can turn off magic quotes in php.ini file but when you works with server, you may not have access of server’s php.ini file. There is another way to do the same task. You can turn off the magic quotes using .htaccess.
Redirect one domain to another using .htaccess
Are you looking for redirecting your website from one domain to another ? I was working for client who has a domain in .com and now they want to move full website into .ie domain. The problem is that all links has been crawled by major search engine. So if we remove all files from .com domain than it shows 404 not found (broken links) for .com domain links. Also we have to remove files to avoid duplicate content issues.
Upload large(Big) files in PHP using .htaccess
I have seen many developers who find difficulties when working with larger files upload in php. When files which are too large in size, needs to be uploaded by php than you have to change the default file size either from php.ini OR httpd.conf OR using .htaccess. Default upload file size will be 2MB. If you are uploading file which is larger than 2MB size than here i am showing you the way to upload larger files using PHP.
How to set PHP configuration(php.ini) values from .htaccess file
There might be situation where you need to change php configuration values when you work on server. In local apache server, you can easily change the php configuration values using php.ini file from directory. But what will you do as php.ini is not visible on server ? The solution is .htaccess which is visible on server(.htaccess invisible ?). Using .htaccess you can change the php configuration values.
.htaccess is invisible – How to make it visible in FTP Program like CuteFTP , Filezilla
As all we know that .htaccess is very popular for redirecting URLS and making SEO Friendly URLS. Using htaccess , your url looks like static url and most search engines can read your url very easily. Dynamic url with query string is difficult to read for search engines as there will be a query string in url.
301 Redirect old dynamic URLs to new static URLs using .htaccess
Today i faced a situation where i need to redirect dynamic URL of my shopping cart to static url. I have changed the Dynamic URL(with query string , ? and &) to static one in my sunshop shopping cart. But still if i will open dynamic url with query string than it shows the content. This is a big issue with search engine as they will consider this dynamic page and static page as two different page and duplicate content issue araise.
How to restrict users from accessing files & directory level(Protect directory) using .htaccess
Today i faced a situation where i have to restrict or deny users from accessing files and folders of my web application directly by entering URL in browser which contain very important contents like images,pdfs,docs,etc. For this what i need to do is to protect the files and folders(directory) which contains images,pdfs and docs. We can restrict users from accessing files,folders and subfolders by using .htaccess(Hyper Text Files).


I am
Recent Comments