Redirect URL with htaccess

If you want to redirect a page/directory to another page/directory, it’s plain simple. Just add the following line into your .htaccess file. Redirect 301 /oldpage.html /new_directory/ Above rule will redirect all requests to the file /oldpage.html to the directory /new_directory/. Redirect number 301 means it was moved permanently. See all numbers below: 300 multiple choices (e.g. offer...

January 18th, 2010 by Akhthar Parvez 

PHP error – URL file-access is disabled in the server configuration

If you get the following error while accessing a PHP script URL file-access is disabled in the server configuration Add the following into the .htaccess file for the particular website to get this work. php_flag allow_url_include Off Note: However, it’s highly recommended to keep allow_url_include disabled as it would be a security risk otherwise. This function allows remote files to be executed...

January 17th, 2010 by Akhthar Parvez