#Set Error pages
ErrorDocument 500 ./500.html
ErrorDocument 404 ./500.html
######################################################################
#
# Please note typically one of these variations will allow the
# "directory" file to run as a PHP script. If you are getting #500
# or 404 errors, simply try the next directive by toggling the
# commented lines.
######################################################################
<Files directory>
ForceType application/x-httpd-php
#SetHandler application/x-httpd-php
#SetHandler application/x-httpd-php5
#ForceType x-httpd-php
</Files>
######################################################################
# If you have installed this script in your web root directory you might consider using
# the following mod-rewrite rules to make it appear as if you have an index.html file,
# so the directory script will be served as your homepage (eg; when no filename is requested.)
######################################################################
## add mod rewrite rules
## uncomment these 2 lines to use any of the following rewrite rules
# RewriteEngine On
# RewriteBase /
## make /directory/ act as index
#RewriteRule ^$ /directory/ [L]
#RewriteRule ^index\.(php|htm|html)$ /directory/ [R]
#RewriteRule ^index\.....$ /directory/ [R]
# Redirect non WWW to WWW
RewriteCond %{HTTP_HOST} ^linksjack\.com
RewriteRule (.*)
http://www.linksjack.com/$1 [R=301,L]
######################################################################
# The following mod rewrite rule is really just a suggestion. It causes viewers to be directed
# to
http://www.yourdomain.com if they arrive at
http://yourdomain.com (no WWW)
# This helps to ensure anyone linking to your site does so consistantly.
######################################################################
## Redirect non WWW to WWW replace "yourdomain" with
## your actual domain name
#RewriteCond %{HTTP_HOST} ^yourdomain\.com
#RewriteRule (.*)
http://www.yourdomain.com/$1 [R=301,L]