Knowledge Base
MilesWeb / How-Tos

How to do URL Masking with .htaccess?

Approx. read time : 2 min

URL masking means visitors to your domain name will be directed to your destination website, but the URL in their browser address bar will remain the same.

The below method enables you to mask a particular part of your website’s address.

For example, if you browse:

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

The URL in the visitor’s address bar will still remain as:

This can be done by adding the below rules into your website’s .htaccess file:

Ensure that you substitute something and else with the actual directories that you are using on your website.

You can also modify the .htaccess file in your MilesWeb hosting account via the File Manager in cPanel.

Also Read
How to do Domain name Masking?

Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.