Welcome to Bradley Dierking Sites. This is your first post. Edit or delete it, then start blogging!
Apache Functionalism
-
Cache Directory
Want to cache your website using .htaccess to avoid php and mysql load? An easy way to create a custom cache of your dynamic site is to generate HTML files for each of your dynamic pages, using the physical folder structure of your dynamic clean urls. Example Dynamic URL http://www.domain.com/state/city/company Corresponding Static URL http://www.domain.com/cache/state/city/company/index.html So [...]
-
Force HTTPS/SSL
If you have a secure website (ex: e-commerce site) and want to force users to browse over HTTPS/SSL (https://www.domain.com) instead of the default (http://www.domain.com), this is a simple way to do it using an .htaccess file: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.domain.com/$1 [R,L]
-
Redirect Domain Aliases
For SEO purposes (to avoid a duplicate-content penalty) and for general web aesthetics, you should always redirect domain aliases back to the main domain. So for example you have a domain like domain.com and you have some permutations of that domain for fat-fingered visitors domaiin.com, domian.com, dommain.com, etc and you want to redirect any traffic [...]
