transfering to public_html

Laraship QuestionsCategory: Technicaltransfering to public_html
bhavinpatel115 asked 5 years ago
I want to see my site without "/public" so I have made the changes as per your answer https://www.laraship.com/question/transfering-to-public_html/ . i have put given code in htaccess file after that my site redirect to Example.com/public so can you plaese expain which file put in Public_html and which file put in public.
2 Answers
laraship Staff answered 5 years ago

Hello,

The only thing needs to be added is the .htaccess file at the www folder with the content

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteRule ^(.*)$ public/$1 [L]

</IfModule>

laraship Staff answered 5 years ago

Hello,

You need to check with your hosting as this methid is already tested by hundreds of Laraship users and thousands of Laravel developers.

If you want us to debug your server you need to upgrade to extended license.