Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  How-Tos  >  How to do URL Masking with .htaccess?
Top Scroll

How to do URL Masking with .htaccess?

 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:

RewriteEngine On
RewriteRule ^something/?$ /something/else/

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?

For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
Claim the discount before it’s too late. Use the coupon code:
Note: Copy the coupon code and apply it on checkout.