rewriting with htaccess
Posted: Fri Jan 27, 2006 2:13 am
hi, i am new to php and trying to rewriting with htaccess this is what i am doing
RewriteEngine on
RewriteRule ^index\.php$ index
just trying to show "index" when "index.php" is written in url and i am getting the error 500
i dont know it is a configuration problem or i am not writing incorrectly please help me in this
[edit] this error is coming if i just try to redirects a page, this is what i am doing
Redirect index.php http://localhost/shopping/cart.php
and apachi log file is createing the following error
[Fri Jan 27 15:24:21 2006] [alert] [client 127.0.0.1] c:/program files/easyphp1-8/www/shopping/.htaccess: Invalid command '\xff\xfeR', perhaps mis-spelled or defined by a module not included in the server configuration
i have already uncomment following lines in config files
LoadModule rewrite_module modules/mod_rewrite.so
AddModule mod_rewrite.c
RewriteEngine on
RewriteRule ^index\.php$ index
just trying to show "index" when "index.php" is written in url and i am getting the error 500
i dont know it is a configuration problem or i am not writing incorrectly please help me in this
[edit] this error is coming if i just try to redirects a page, this is what i am doing
Redirect index.php http://localhost/shopping/cart.php
and apachi log file is createing the following error
[Fri Jan 27 15:24:21 2006] [alert] [client 127.0.0.1] c:/program files/easyphp1-8/www/shopping/.htaccess: Invalid command '\xff\xfeR', perhaps mis-spelled or defined by a module not included in the server configuration
i have already uncomment following lines in config files
LoadModule rewrite_module modules/mod_rewrite.so
AddModule mod_rewrite.c