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: http://yourdomain.com/something

the content that will be displayed can be the one under: http://yourdomain.com/something/else

The URL in the visitor’s address bar will still remain as: http://yourdomain.com/something.

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?

Avatar
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.
Need help? We’re always here for you.
DON'T LOSE YOUR FREE TRIAL
OFFER EXPIRES IN
04
min
59
sec
Who is your preferred cloud partner?
Let us know and we’ll manage it for you
Amazon Cloud
Digital Ocean Cloud
No, thank you