hi, in the online manual, i'm told that i have four options for protection: * mod_rewrite with php_include * auto_prepend_file with php_include * php_include * htpasswd with the first being the best. on my admin pages, i am presented with the following plugin options: * htpasswd * htpasswd_shared * mod_auth_mysql * php_include * plugin_template i have no idea what to select in the options. i'd like to use mod_rewrite. in the "version info" page, the apache version is "Apache/1.3.27 OpenSSL/0.9.7 (Unix) PHP/4.3.4" and "mod_php4" is one of the loaded modules. thanks. mkm
Just follow manual. Does it say you to enable "mod_rewrite" plugin to use this protection method? I believe it doesn't. Keep default settings while it is working. I recommend you to use aMember CP -> Protect Folders feature.
okay, i guess i was looking to enable "mod_rewrite" in the wrong place. so now i'm in the project folders area, and mod_rewrite is greyed out. i've got php compiled into apache, so why can't i use it? mkm
from the apache log: /usr/local/apache/htdocs/membership/data/tests/mod_rewrite/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
It means that it mod_rewrite works as it should. In this case it magically displays you content of 2.php file when you access 1.php
okay, i've got my server to the point where "mod_rewrite" appears under "loaded modules" in the version info page. however, when i run the 1.php url, i get the response "1-first_file", and not "2-second_file" as you indicated should happen. and in the protect folders section, the "php_include+mod_rewrite" option is still greyed out, with the message "(RewriteRule doesn't work in .htaccess files on this server)". ideas? thanks. mkm
If it happens, it mean that mod_rewrite doesn't work or you did not upload .htaccess file to amember/data/tests/mod_rewrite/ folder.
.htaccess says: <Limit GET POST> allow from all </Limit> RewriteEngine On RewriteRule 1\.php 2.php i'm not sure if the 1.\php was right, so i changed it to 1.php, but that made no difference.
I cannot add anything to my previous message. Just contact your hosting support and ask them why mod_rewrite doesn't work. .htaccess contains no errors, no need to fix it )
solved in order to get mod_rewrite to work in the .htaccess file, in httpd.conf, i had to change: "AllowOverrides None" to: "AllowOverrides All". it works great now. thanks. mkm
solved in order to get mod_rewrite to work in the .htaccess file, in httpd.conf, i had to change: "AllowOverrides None" to: "AllowOverrides All". it works great now. thanks. mkm