With Godaddy there is a really simple trick to ensure public folder is removed from your url.

Example: www.example.com/**public**/about

First lets open up your .htaccess file and copy and paste the code provided below.

Options +FollowSymlinks

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

Save upload to your server and public folder will no longer have to be called when navigating through your website.

Now can be called out as below.

Example: www.example.com/about


Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *