smith.norton
09-03-2006, 04:55 AM
I did the following things.
In the 'httpd.conf' file, I enable mod_rewrite. Here is the relevant portion of the file:-
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
I created a .htaccess file in my Document root. I am dumping the complete content of the .htaccess file.
RewriteEngine on
RewriteRule ^old\.php$ index.php
That's the complete file. I am a n00b in .htaccess. I may be wrong with this.
Then when I try to access http://localhost/old.php I get an error message. I was expecting http://localhost/index.php to appear.
Can anyone tell me what might have gone wrong?
In the 'httpd.conf' file, I enable mod_rewrite. Here is the relevant portion of the file:-
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
I created a .htaccess file in my Document root. I am dumping the complete content of the .htaccess file.
RewriteEngine on
RewriteRule ^old\.php$ index.php
That's the complete file. I am a n00b in .htaccess. I may be wrong with this.
Then when I try to access http://localhost/old.php I get an error message. I was expecting http://localhost/index.php to appear.
Can anyone tell me what might have gone wrong?