If someone types in "
http://sovereignfunding.com" I want to automatically redirect them using a 302 redirect to "
http://www.sovereignfunding.com".
I can't use .htaccess to do the redirect because FrontPage 2003 loses the ability to login to my site. The following URL explains why you can't use .htaccess and FP - (
http://www.12wonderhosting.com/faqhtaccess.php - see #2).
Someone recommeded that I do the following:
If you add the Apache redirect directives you would have used in the .htaccess file directly into the Apache configuration (/etc/httpd/conf/httpd.con
f) for the domain's webroot ( ie, inside the <Directory "/var/www/html"></Director
y> section, you can sidestep the frontpage issue and use the redirect without having a .htaccess.
I made the change to the httpd.conf file (see modification below). After the change I wasn't able to login to my site and I couldn't send/receive email. So I changed it back to the original.
Would someone else have another recomendation?
Thanks in advance!
Modified httpd.conf file
<Directory "/var/www/html">
RewriteEngine On
RewriteCond %{HTTP_HOST} ^sovereignfunding\.com$ [NC]
RewriteRule ^(.*)$
http://www.sovereignfunding.com/$1 [R=302,L]
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options FollowSymLinks MultiViews Includes ExecCGI
AddHandler cgi-script .cgi .pl .py .sh
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
Start Free Trial