Craven de Kere
Hi Ok, I'm a newbie at all this stuff... I tried to following your instructions... I'm new so it took me a little time to understand what was going on
my .htaccess is
Code:
RewriteEngine On
RewriteRule ^foo.* bar.html [L,NC]
[*]Attempt to access foo.html in this directory with your browser.
placed the .htaccess in the same folder as bar.html
After I went to the folder with the .htaccess I got a 500 error. Emailed the webservice and said that mod_rewrite was installed...
Code:Server Root /usr/local/apache
Loaded Modules mod_evasive, mod_security, mod_auth_passthrough, mod_log_bytes, mod_bwlimited, mod_php4, mod_frontpage, mod_ssl, mod_setenvif, mod_so, mod_expires, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_status, mod_negotiation, mod_mime, mod_log_config, mod_env, http_core
My error log is this
[Sun Mar 5 15:11:54 2006] [error] [client x.x.x.x] File does not exist: /home/shh/public_html/500.shtml
[Sun Mar 5 15:11:54 2006] [alert] [client x.x.x.x] /home/shh/public_html/test1/.htaccess: Invalid command '[*]Attempt', perhaps mis-spelled or defined by a module not included in the server configuration
I'm not sure what to do next... I have read this thread a lot of times... and I hope I provided enough info for you to help...
also tried this and got same error
my .htaccess is
Code:
RewriteEngine On
RewriteBase /test1/
RewriteRule ^foo.* bar.html [L,NC]
[*]Attempt to access foo.html in this directory with your browser.