Archive for the ‘htaccess’ Category

  • .htaccess: Disabling access to browse files on directories

    0

    Some web hosts (including mine up until recently) allow users to browse files on a particular directory on your website. Although this is handy for you in development to check if files have actually uploaded or whatever else. But of course you don’t want everyone else being able to browse through your files, thankfully there is a short code you can add to your .htaccess files which will block access to browsing these directories.

    » Read the rest of the entry..

  • .htaccess: redirecting no www. to www.

    0

    The .htaccess is a powerful tool when it comes to managing server-side actions. It is a common comment that sites that have both www.domain.com and domain.com can get penalised from search engines because they are seen as 2 different websites. Personally I think this theory is a bit silly and you’d think search engines such as google would be smarter than that. Never the less, site addresses should probably be consistent anyway. Using .htaccess you can redirect traffic that goes to domain.com to www.domain.com – thus fixing the search engine problem and making your domain consistant to all visitors.

    » Read the rest of the entry..