I don't seem to be able to do the following in my .htaccess I have my script in a subfolder inside my root directory, let's call it "ecommerce", and inside that subfolder I have my .htaccess. Am trying to make going to a certain subfolder inside "ecommerce" load a certain page within the 2nd subfolder, let's called it "shirts".
Here is my code:
RewriteEngine On RewriteRule ^ecommerce/shirts/$ /ecommerce/shirts/shirts.php
Here are the address/locations of the the files and folders:
What am trying to do is, if I open
I'll get access to my shirts.php inside, instead of the folder directory. Ofc I made sure that I have mod-writing enabled on my Apache server. Thanks in advance for you help.