transfering to public_html

Laraship QuestionsCategory: Technicaltransfering to public_html
bhavinpatel115 asked 6 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 6 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>

bhavinpatel115 replied 6 years ago

As per your answer .htaccess file has been added to www folder and given below code added in to it after my site redirect to example.com/public/public. please advise.
![](https://imgur.com/5HqxsIB)
![](https://imgur.com/HuVc3Ec)

hello3 replied 6 years ago

sure your .htaccess is in right location? Looks like you have added to incorrect location as your domain is open at the moment which is not very secure. .htaccess needs to go in the root public_html

bhavinpatel115 replied 6 years ago

I am very sure that .htaccess is in right location please see https://imgur.com/TWyxfDm.

laraship Staff answered 6 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.