Jump to content


Photo

.htaccess not working, what am I doing wrong?


  • Please log in to reply
1 reply to this topic

#1 ballhogjoni

ballhogjoni

    Advanced Member

  • Members
  • PipPipPip
  • 1,011 posts

Posted 24 March 2013 - 12: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

dannyb785

    Advanced Member

  • Banned
  • PipPipPip
  • 551 posts

Posted 16 April 2013 - 02: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

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com