Archive

Posts Tagged ‘root’

Redirecting URL Without www to URL With www Using .htaccess File

October 17th, 2009 Masino Sinaga 4 comments

Today I learnt something new again about how to redirect my website if the visitors type in their browser such as this address: http://openscriptsolution.com (without prefix www.) then the browser will be automatically redirected it to the http://www.openscriptsolution.com (with prefix www.). This is very important for those of you who have the website, since you have to decide which URL that you will use for the consistency of your URL. In addition, Google loves the consistency of the URL that we used for our website. That’s what I have heard and known from Internet. So, here is the code how you can do that for your website by using .htaccess file. Read more…

  • Share/Bookmark

Three Methods to Avoid Directory-Listing in WordPress

September 10th, 2009 Masino Sinaga 6 comments

In WordPress, almost plugins that I have used, do not include the index.html or index.php file inside its directory. As default, up to WordPress version 2.8.4, there is no protection to prevent or to avoid directory listing the first time you access your website after you install your WordPress. Thus, you or even your visitor can type such as http://www.yourdomain.com/wp-content/plugins/akismet/ then, voila… you or they can see the directory list which has the files inside that /akismet/ sub directory. You should take care about this early. Otherwise, if your visitor know about the weakness of your plugins that you currently use, they can exploit the bugs and hack your website easily. To avoid this happened, there are three methods that you can do how to avoid the directory list in your WordPress. Read more…

  • Share/Bookmark