Hi All!
I am really confuse as to how I use the mod_rewrite.. What are the steps to use this?
Here are what I did:
1. Check if mod_rewrite loaded/enabled in Apache modules. ->Yes
I have written this in my httpd.conf:
<Directory "/var/opt/htdocs/sample"> AllowOverride FileInfo Options </Directory>
Then I put the .htaccess file under the /sample directory.
Here is my htaccess file.
RewriteEngine On
RewriteRule img/([a-Z-A-z])/?$ sample/image.php?imgname=$1
But when I access my url for this it gives me: "The webpage cannot be found error"
i.e. http://abc.co.jp/sample/img/myimage.jpg
What am I doing wrong? Please help!