Apache
Drupal - How to install Drush
What is Drush?
It's a command line shell and scripting interface for Drupal. The Drush Package Manager allows you to download, enable, disable, uninstall, update modules/themes/profiles/translations from the command line in a very simple way (apt-get style) - just type,
drush dl views
3 comments for Drupal - How to install Drush
Enable cURL with XAMPP
cURL is disabled by default in your XAMPP installation. To enable it, you have to modify the php.ini files in your XAMPP folder. Follow the steps below to get it up and running.
2 comments for Enable cURL with XAMPP
How to setup a local web server on your computer using XAMPP
Web development work should always be done locally. When developing a website, all the development work should be done on a local LAMP Stack environment installed on your computer. That way, the production time is greatly reduced and you can fully test your work before launching.
13 comments for How to setup a local web server on your computer using XAMPP
How to Create a Custom 404 Error page with .htaccess
Everyone's encountered those standard 404 error pages that yield little or no information. Most new systems have this feature built in by default and often times are pretty fancy with informative to funny graphics and lots of options on what to do next but, if your working on updating an old site not using dynamically based web pages then, your going to have to add one manually. For your user's experience, it's better to provide a helpful error message and links to where they can continue on their quest for information. You don't want to scare your visitors away do you?
1 comments for How to Create a Custom 404 Error page with .htaccess
Disallow hotlinking while allowing requests from robots.txt and favicons
We all hate Leechers. Here's how to stop them in their tracks from stealing your images and your bandwidth!
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_URI} !(^/robots\.txt|\.ico)$
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?example.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|pdf)$ [F,L]
0 comments for Disallow hotlinking while allowing requests from robots.txt and favicons
Creating an .htaccess file on Windows
Everyone who has tried creating a .htaccess on windows knows that Windows Explorer does not accept the '.' character as the first character of a file. For most of you this may be old stuff, but for the newbies, the quick way to create a file that starts with a '.' is actually pretty simple.
3 comments for Creating an .htaccess file on Windows
htaccess - How to redirect all http (port 80) requests to https (port 443)
Sometimes you may need to redirect http requests on port 80 to (https) on port 443. This can easily be accomplished with .htaccess.
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [NC,R,L]
4 comments for htaccess - How to redirect all http (port 80) requests to https (port 443)
Using SSH and Unix commands
Having some basic knowledge of SSH and Unix commands is very useful. Developed in 1995, SSH (Secure Shell) was created as a secure alternative to Telnet. Telnet is a protocol allowing for command line access to a Unix, Linux or FreeBSD based remote computer. I've listed some basic commands to get you familiar with them.
7 comments for Using SSH and Unix commands
.htaccess - Limit website access by IP
I've been asked many times how to limit website access by allowable IP's. This is fairly simple to accomplish with .htaccess and very useful for blocking web vagrants to allowing you to make updates to a website while redirecting all other IP's to a maintenance page. Simply follow the steps below:
4 comments for .htaccess - Limit website access by IP
Adding 301 Redirects using htaccess
It's easy adding 301 redirects to your website using Apache's htaccess. A 301 redirect is the most efficient and Search Engine Friendly method for web page redirection. It's not difficult to implement and will preserve your search engine rankings as well.
Often when someone does a redesign of their website or puts it into a new platform, and little consideration is regarded for the difference between the existing an new link structure. You should have a redirect in place if your old link structure varies from the new one. This will help you maintain you search engine rankings and decrease the possibility if someone reaching a 404 page.