Hi.
I am currently working on a project where I have created a Virtual Host called 'stories.com'. The htaccess file that I have created doesn't work as intended.
My htaccess file looks like this:
RewriteEngine on
RewriteBase /
RewriteRule ^help/([A-Za-z]+)$ help.php?type=$1
But when I visit it with my browser, it tells me that it cannot find 'index: type', but when I change the name of the directory with something other than the original file name, it works fine. Example:
RewriteRule ^showHelp/([A-Za-z]+)$ help.php?type=$1
The above links to 'stories.com/showHelp/about' and it the php works fine with that.
How do I fix this?
Thanks.
P.S: I have not changed or edited any of the pre-provided code of httpd.conf or any other file.
I am currently working on a project where I have created a Virtual Host called 'stories.com'. The htaccess file that I have created doesn't work as intended.
My htaccess file looks like this:
RewriteEngine on
RewriteBase /
RewriteRule ^help/([A-Za-z]+)$ help.php?type=$1
But when I visit it with my browser, it tells me that it cannot find 'index: type', but when I change the name of the directory with something other than the original file name, it works fine. Example:
RewriteRule ^showHelp/([A-Za-z]+)$ help.php?type=$1
The above links to 'stories.com/showHelp/about' and it the php works fine with that.
How do I fix this?
Thanks.
P.S: I have not changed or edited any of the pre-provided code of httpd.conf or any other file.