Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

.htaccess file not working as intended (1 reply)

$
0
0
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.

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>