Syransong / portfolio-2022

0 stars 0 forks source link

Hosting is served from the public_html root folder #12

Open Syransong opened 1 year ago

Syransong commented 1 year ago

Description

Currently, the website is being served directly from the root folder and redirects to show the public folder. As a result, "/public/" is seen in the URL. Having the public folder exposed in the URL can be a severe security issue as users could try and access folders that are meant to be kept private.

Steps to Reproduce

  1. Navigate to https://karinasong.com

Expected Result

The URL seen in the search bar is "https://karinasong.com"

Actual Result

The URL seen in the search bar is "https://karinasong.com/public/"

Environments

This issue is present on all browsers across all environments.

Screenshots

Screen Shot 2023-03-23 at 9 52 43 PM

Syransong commented 1 year ago

Issue was resolved by following the hosting website's instructions on setting up the redirect on the htaccess file