aksan
07-29-06, 11:08 AM
All, need your advice, I'm using WAMP, after installing WAMP i'm trying a simple code in htaccess:
Options +FollowSymLinks
RewriteEngine On
RewriteRule google http://www.google.com/? [R,L]
but its not wotking?
i make it more simple, i create file named alice.html and bob.html that show alice and bob words, thus i create .htaccess file like this Code:
RewriteEngine on
RewriteRule ^alice.html$ bob.html
when i see write in broser mysite.com/alice.html page and content still alice.html, it should be content with bob.html, what wrong???
Actually my phpinfo() have Loaded Modules:
core mod_win32 mpm_winnt http_core mod_so mod_access mod_actions mod_alias mod_asis mod_auth mod_autoindex mod_cgi mod_dir mod_env mod_imap mod_include mod_isapi mod_log_config mod_mime mod_negotiation mod_rewrite mod_setenvif mod_userdir mod_php5
i has mod_rewrite loaded! but still not work?
any solution?
another questions:
1. should i put my .htaccess in parent folder eg: www??
2. if i indexing the folder, htaccess ahow like this "htaccess.htaccess ", its correct? not .htaccess?
3. there is another thing that i should configure in my conf, because WAMP already AllowOverride all, load mod_rewrite.
sorry if make you all more confuse, need advice
Options +FollowSymLinks
RewriteEngine On
RewriteRule google http://www.google.com/? [R,L]
but its not wotking?
i make it more simple, i create file named alice.html and bob.html that show alice and bob words, thus i create .htaccess file like this Code:
RewriteEngine on
RewriteRule ^alice.html$ bob.html
when i see write in broser mysite.com/alice.html page and content still alice.html, it should be content with bob.html, what wrong???
Actually my phpinfo() have Loaded Modules:
core mod_win32 mpm_winnt http_core mod_so mod_access mod_actions mod_alias mod_asis mod_auth mod_autoindex mod_cgi mod_dir mod_env mod_imap mod_include mod_isapi mod_log_config mod_mime mod_negotiation mod_rewrite mod_setenvif mod_userdir mod_php5
i has mod_rewrite loaded! but still not work?
any solution?
another questions:
1. should i put my .htaccess in parent folder eg: www??
2. if i indexing the folder, htaccess ahow like this "htaccess.htaccess ", its correct? not .htaccess?
3. there is another thing that i should configure in my conf, because WAMP already AllowOverride all, load mod_rewrite.
sorry if make you all more confuse, need advice