Forum Moderators: phranque
Below are the conetns of the .htaccess file
IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*
order deny,allow
deny from all
allow from all
order deny,allow
deny from all
AuthName www.site.com
AuthUserFile /home/site/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/site/public_html/_vti_pvt/service.grp
# Rewrite Rules
#RewriteEngineon
#RewriteRule^xredirect:(.+)/cgi-bin/redirect.pl?name=$1
#IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*
AddType application/x-httpd-php .xml
RewriteEngine On
#RewriteRule ^/forums/(.*) [forums.site.com...] [L,R=301]
RewriteCond %{HTTP_HOST} ^site\.com$
RewriteRule ^(.*) [site.com...] [L,R=301]
#RewriteCond %{REQUEST_URI}!forums/
RewriteCond %{REQUEST_URI}!images/
RewriteCond %{REQUEST_URI}!admincp/
RewriteCond %{REQUEST_URI}!ad/
RewriteCond %{REQUEST_URI}!testibp/
RewriteCond %{REQUEST_URI}!ads/
Can anyone please help me?
[edited by: jdMorgan at 2:24 pm (utc) on July 14, 2005]
[edit reason] Disabled smileys in code. [/edit]
Below are the conetns of the .htaccess file
Is this the *exact* *complete* .htaccess file? Or, have you made adjusments?
The reason I ask is:
Everything with a # preceding it is commented out IOW has no effect.
These Lines:
#RewriteCond %{REQUEST_URI}!forums/
RewriteCond %{REQUEST_URI}!images/
RewriteCond %{REQUEST_URI}!admincp/
RewriteCond %{REQUEST_URI}!ad/
RewriteCond %{REQUEST_URI}!testibp/
RewriteCond %{REQUEST_URI}!ads/
Do nothing, unless there is a RewriteRule at the bottom of the file that is not posted.
The correct .htaccess file syntax for the forum rewrite, which is also commented out is:
#RewriteRule ^forums/(.*) http://www.forums.site.com/$1 [L,R=301]
Please, note the removal of the preceding / from the Rule.
Could you please let us know about these questions, because as of right now the only Rewrite that looks to be functioning correctly is the redirect from the non-www version to the www version, and this should not cause any other access issues.
Justin