Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Major Mod rewrite problem


jd01 - 9:51 pm on Jul 13, 2005 (gmt 0)


Hi illusionist,

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


Thread source:: http://www.webmasterworld.com/apache/4081.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com