Looking to Build/Redesign a Website or Blog ?

To speak to Rakshit, call +91 968 704 2303

March 9, 2010


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.

February 16, 2010


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.

February 6, 2010


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.

January 29, 2010


.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.

January 25, 2010


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.

January 12, 2010


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).

December 24, 2009


How to remove index.php from url using .htaccess (mod_rewrite)

For better SEO optimization and make urls more search engine friendly , remove index.php from URL and make it easier to read. This can be done by writing only two lines in your .htaccess(mod_rewrite in apache) file. Before writing this rule in .htaccess , make sure that your mod_rewrite is enabled(On) in your apache server.

December 24, 2009


How to redirect www to non-www and non-www to www URL using .htaccess redirect(mod_rewrite)

Websites can be access with www and without www also. Since Search engines consider http://www.programmingfacts.com and http://programmingfacts.com different websites. It might be a case of duplicate content. So you must stick your domain name accessible either with www or without www.