When I tried to rewrite the code in .htaccess to clean my web URL, i found the below code works
RewriteEngine On
RewriteRule ^shirts/$ /2015.7.21/shirts/shirts.php

instead of
RewriteEngine On
RewriteRule ^2015.7.21/shirts/$ /2015.7.21/shirts/shirts.php

My project files are under /2015.7.21/ , Shouldn't the URL the browser is looking for be "2015.7.21/shirts/" instead of "shirts/"?
Zoe ZoeAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dan CraciunIT ConsultantCommented:
Where is the .htaccess file? If it's under the root, then yes, the first rule should not work unless you have something like RewriteBase /2015.7.21/ before it.

But, if that .htaccess file is already inside the 2015.7.21 folder, then the first rule is valid and the second won't work.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.