URL Masking with .htaccess

The following method will allow you to mask certain part of your website's address.

For example, when someone opens up:

http://yourdomain.com/something

the actual content that will be displayed can be the one under:

http://yourdomain.com/something/else

although the URL in the visitor's address bar will still remain http://yourdomain.com/something.

You can achieve this by adding rules similar to the ones below into your website's .htaccess file:

Make sure to substitute something and else which the actual directories that you are using on your website.

An easy way to modify the .htaccess file in your SiteGround hosting account is via the File Manager in cPanel.

You find this article useful? Click here to learn more about SiteGround web hosting experts and what else we can do for you!