• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 112
  • Last Modified:

mod_rewrite directory

Lets say you have the following page structure

http://www.mydomain.com/doc1/public

Open in new window


I am trying to figure out how to rewrite that url so that when the user hits
http://www.mydomain.com/doc1/ it will access the contents in the public folder.
0
stargateatlantis
Asked:
stargateatlantis
1 Solution
 
Steve BinkCommented:
RewriteRule ^/?doc1/(.*)$ /doc1/public/$1

Open in new window

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now