How to Mask My Domain using .htaccess?

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

For example, when someone opens up:

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

although the URL in the visitor's address bar will still remain

You can achieve this by adding rules similar to the ones below into your website's .htaccess file:
RewriteEngine On
RewriteRule ^something/?$ /something/else/

Make sure to substitute something and else which the actual directories that you are using on your website.
  • 164 Users Found This Useful
Was this answer helpful?

Related Articles

How to Create an Under Construction or Coming Soon page

When building a website, you may not want random visitors snooping your pages until you are ready...

How to Change your Default Index Page in .htaccess

The server looks for specifically named files as the first page of your website, also known as...