Posts Tagged ‘.htaccess’
Compressing HTML and PHP files on 1and1
1and1 doesn’t have mod_deflate or mod_gzip enabled on its home or business virtual server packages which means that many of the usual .htaccess tweaks to compress your web pages won’t work. Here’s something very simple tweaks that will work with 1and1, and with other hosts too. Set up your .htm and .html files so that they are parsed by [...]
Redirect all but selected sub-directories using .htaccess rules
I have an old website which is almost defunct, and I wanted to redirect all the traffic from it to this website – APART from a few selected directories. This is how I managed to get the redirects working using a .htaccess file. For this example the directory containing the material that I don’t want to redirect is called ‘goodstuff’. [...]
Upgrade WordPress to 2.8.1 on 1and1
In the bad old days upgrading anything WordPress related (plugins, themes, or WordPress itself) would at best involve manually downloading a zip, extracting it locally and then using FTP to upload the changes to your web server. At worst it could require manually editing files, and making database changes. In February last year I wrote about [...]
Using a common form mail script for multiple websites
I run a number of different websites. Most of them have a contact page which is powered by a form mail script. Until recently each of these websites used an almost identical copy of the same form mail script - I use PHPFormMail but you could adapt this solution for other form mail scripts. Each contact us page has very similar HTML in it. I wanted [...]
Custom error pages on 1and1 when HTML files are set as PHP types
A long time ago I set up custom error pages on my 1&1 hosted websites. However recently I noticed that they had stopped working. When a 404 error occured, instead of redirecting to my error page I got an advert filled parking page. I re-checked their instructions for setting up the error pages on their FAQ and I was pretty sure that I was [...]









