Jump to content


.htaccess not working, what am I doing wrong?

  • Please log in to reply
1 reply to this topic

#1 ballhogjoni

  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts

Posted 24 March 2013 - 05:56 PM

So i have an .htaccess file that has this in it:



SetEnv APPLICATION_ENV development
RewriteEngine On
RewriteRule ^/path/to/app/(.*)$ /path/to/app/public/$1 [NC,L]
When I go to /path/to/app/ in the browser it displays the directory structure instead of redirecting the server to /path/to/app/public/$1
What am I doing wrong?

#2 dannyb785

  • Members
  • PipPipPip
  • Advanced Member
  • 551 posts

Posted 16 April 2013 - 07:06 PM

Have you tried it without the / in front of path? But I don't know your folder setup so that might not be helpful

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users