Forum Moderators: phranque
I'm trying 'RewriteEngine On' on an .htacces into my Raq4 but I can't succeed.
I've checked the httpd.conf and
LoadModule rewrite_module modules/mod_rewrite.so
is there, uncommented.
I've also tried 'Options FollowSymLinks' into my .htaccess before 'RewriteEngine On' and also tried 'AuthType Basic', it doesn't work.
My hosting told me that there was a change they had to make in the access.conf and therefore something should be added into each .htaccess but they can't remember.
It was an odd Raq4 Cobalt issue of some sort back from year 2002.
Please, do you have any idea?
Thanks in advance
tito
I don't see AllowOverride mentioned anywhere on httpd.conf and srm.conf
Into access.conf is as follows:
....
# First, we configure the "default" to be a very #restrictive set of permissions.
<Directory />
Options None
AllowOverride AuthConfig Indexes Limit
AuthFailDelay 2000000
</Directory>
....
and
....
# 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
....
Please, I do have .htaccess 'RewriteEngine on' into subdir. which properly works, only the .htaccess in root domain doesn't work.
The .htaccess working into subdir. is as follows;
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://domain.net/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://www.domain.net/.*$ [NC]
RewriteRule .*\.(ra¦rm¦ram)$ [domain.net...] [R,NC]
Thanks so much for your help
tito
The other .htaccess is just an 'RewriteEngine On' for anti-leeching and it's located into a subdir.
Do you believe there could be a conflict? If so how it could be solved?
I think that 'AllowOverride AuthConfig Indexes Limit'
was settled due to a possible exploit in Raq4 they discovered back in year 2002, but I don't know nothing about it.
Anyway I'd like to try, so should I change it like this?
<Directory />
Options None
AllowOverride AuthConfig FileInfo Indexes Limit
AuthFailDelay 2000000
</Directory>
And after I have re-uploaded my access.conf, do I have to restart apache or what else?!?
Thanks so much
tito
<Directory />
Options None
AllowOverride None
AuthFailDelay 2000000
</Directory>
<Directory /home/sites/>
Options Indexes FollowSymLinks Includes
AllowOverride All
</Directory>
(snipped irrelevant parts).
No probs with mod_rewrite whatsoever. I am the only user on that server, so I don't need to worry about folks doing funny things in .htaccess.
And yes, you need to restart Apache before changes in *.conf files take effect.