itsraghz - 4:36 pm on Oct 20, 2013 (gmt 0)
I need a help on the basic mod_rewrite. I am using Apache 2.2 on my Windows 7.
I had been reading about mod_rewrite through Internet and practicing on my own. Based on the simple steps given in this site [yourhtmlsource.com ], I have placed two html files - old.html and new.html in the htdocs folder of my Apache.
I also have the following lines in my httpd.conf. I do not have any .htaccess file.
My Rewrite rule goes as follows.
RewriteRule ^old\.html$ new.html
However, when I access the file [localhost ], it never gets redirected to new.html. Instead it always serves the old.html page only. I have ensured that Rewrite module is enabled. I also verified in the command line "httpd -t -D DUMP_MODULES". It lists the rewrite module.
When I check my log file (access.log) it shows the HTTP Status code as follows.
GET /old.html HTTP/1.1" 304 -
I have also cleared my browser cacheas suggested in one of the webmaster forums and accessed. But still no luck.
Any help would be much appreciated.
Raghavan alias Saravanan M.