I have a lot of .htaccess files. Is the one in my catalog directory the one in my root directory?
(I’d always rather ask a stupid question if it means avoiding doing a stupid thing).
Another stupid question: does the # comment out the line?
The one in my root directory already has the following within it: Would I need to delete all of this or just some of it? (I've replaced the name of the website with "websitename").
# $Id: .htaccess,v 1.1.1.1 2005/12/03 21:36:01 max Exp $
#
# This is used with Apache WebServers
#
# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers
#
# For this to work, you must include the parameter 'Limit' to the
# AllowOverride configuration
#
# Example:
#
#<Directory "/usr/local/apache/htdocs">
# AllowOverride Limit
#</Directory>
#
# 'All' with also work. (This configuration is in your
# apache/conf/httpd.conf file)
#<IfModule mod_setenvif.c>
# <IfDefine SSL>
# SetEnvIf User-Agent ".*MSIE.*" \
# nokeepalive ssl-unclean-shutdown \
# downgrade-1.0 force-response-1.0
# </IfDefine>
#</IfModule> ############ Rewrite Engine ##############
#Options +FollowSymLinks
RewriteEngine On
php_value register_globals Off
php_flag display_errors On
############ Rewrite Rules ###############
RewriteRule .*\.svn/.* - [F]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^websitename.com$
RewriteRule (.*) http://www.websitename.com/$1[R=301,L]
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^websitename.com$
RewriteRule (.*) https://www.websitename.com/$1[R=301,L]
# xml site map
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(sitemap(.+)\.xml)$ xml_sitemap.php?feed=$1&%{QUERY_STRING} [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+) index.php?seo_path=$1&%{QUERY_STRING} [L]
# AuthUserFile "/home/websitename/public_html/htusers"
# AuthType Basic
# AuthName "Protected"
# require valid-user
# <Files htusers>
# deny from all
# </Files>
I also have .htaccess.svn-base files do these need editing at all?
Thank you very much for taking a look at this,
Rory