0

My htdocs folder is like the following: htdocs: /server - here all the lumen files are located /client - angular 1 project

How can I redirect that when I type localhost/server in the url it will redirect me to the public folder inside the server folder.

I've written this for the .htaccess inside the /server folder to redirect everything to the public folder.

    RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
Paul Diamant
  • 189
  • 2
  • 13
  • "not working" is almost always a bad error description. What exactly is happening or not happening? See also http://stackoverflow.com/help/how-to-ask – Olaf Dietsche Jan 26 '17 at 16:18
  • Yes, not working, the routes that I registered in lumen are not accessible for some reason. Could you provide an example of redirecting using htaccess from a subfolder to another folder? I need to redirect all requests from /server/public to just server. – Paul Diamant Jan 26 '17 at 16:30
  • So you get a 404 error message? – Olaf Dietsche Jan 26 '17 at 17:10
  • Have you already looked at the "Related" links in the side bar? http://stackoverflow.com/q/30740023/1741542 looks like it is what you're searching for. – Olaf Dietsche Jan 26 '17 at 17:13

0 Answers0