Turns out I was being a muppet and forgotten to get the exact redirect directory name correct.
Capitalising the 'p' on public resolved the error.
Thanks for your time though.
Main Topics
Browse All TopicsHi,
I'm attempting to create a redirect from a sub directory on my server, to another sub directory of the sub directory.
Basically I have a similar structure to below:
domain
- sub directory a
- sub directory b
- - .htaccess
- - sub directory b1
- - sub directory b2
- - sub directory b3
- - sub directory b4
- - public
I'm looking to redirect any requests to sub directory b or it's sub directories to be directed to the public directory of sub directory b.
Currently I have the following in my .htaccess file in sub directory b:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 [L]
</IfModule>
However whenever I attempt to access sub directory b, I get an internal server error. I'm certain it is an error with my .htaccess as when I remove the .htaccess I can access the directory fine.
Thanks for all your assistance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: ChristianSchabPosted on 2009-06-07 at 09:13:13ID: 24566924
Hello!
Do you have mod_rewrite installed on this server?
What is the error written in the error_log?