Website Help
URL Masking with .htaccess

URL Masking with .htaccess

The following method will allow you to mask a 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 http://yourdomain.com/something.

To achieve this, add 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.

Share This Article