URL Masking with .htaccess

In case you would like to access a certain URL for your domain name but do not display it in the web browser address bar - here is how you can accomplish it using an .htaccess file.

A sample rewrite rule will look like this:

RewriteEngine On

RewriteRule ^something/?$ /something/else/

This way each time someone accesses:

http://yourdomain.com/something

the actual content that will be displayed will be for:

http://yourdomain.com/something/else

while the URL will remain unchanged.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Brute Force Attack – What it is and How to Block It

Brute-force is a method of guessing your password by trying combinations of letters, numbers and...

What is pdftoppm and is it supported by Hostlantern?

Pdftoppm is a library that handles the conversion from Portable Document Format (PDF) files to...

How to clear your Internet browser’s cookies?

Sometimes you may need to clear the cookies saved by your browser. Basically the cookies...

Hacked Website

The most common reasons for a hacked (defaced) website include: - Outdated web application....

How to clean my files from malicious code?

If your website has been hacked and malicious content has been inserted into your files, you...