0
votes
1answer
172 views

How do I RewriteRule to /public/ but not allowing the user to access through /public/?

I'm doing the following: RewriteEngine On RewriteCond %{REQUEST_URI} !^/public RewriteRule /(.+) /public/$1 And it maps like this: / => index /.+ => /public/$1 /public/.* ...
1
vote
1answer
68 views

mod_rewrite for specific domains in a mappings file

I have a bunch of domains that I want to go to one domain but various parts of that domain. # this is what I currently have RewriteEngine On RewriteCond %{HTTP_HOST} ^.*\.?foo\.com$ [NC] RewriteRule ...