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

mod_rewrite directory

Lets say you have the following page structure


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.
1 Solution
Steve BinkCommented:
RewriteRule ^/?doc1/(.*)$ /doc1/public/$1

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

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