My Apache is actually running on Windows 7.
Here are the contects of the .htaccess file:
Code:
<Files ~ "^\.(htaccess|htpasswd)$">
deny from all
</Files>
AuthUserFile **********************
AuthGroupFile /dev/nullAuthName "Please enter your ID and password"
AuthType Basic
require valid-user
order deny,allow
Options +FollowSymLinks
RewriteEngine on
RewriteBase /someFolder
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteRule /R/(.*)/ index.php?R=$1
I've taken another look at the .htaccess file and found that the RewriteBase is not correct. After adjusting it, I started receiving 500 Internal Server Error. I changed it to the below:
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /correctFolder
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteRule /cmd/(.*)/ index.php?cmd=$1
Can you advise how to solve this?
Also, when I'm on the Windows 7 Machine, when I go to the folder via browser, I get the URL like this:
http://localhost/correctFolder/index/R/myString .. I want to remove the /index/ part and have the URL just be
http://localhost/correctFolder/R/myString where the original URL is
http://localhost/correctFolder/inde.php?R=myString